From 13c24945692f3e7960231a8935db6fd93424adb8 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 5 Feb 2021 17:10:51 +0900 Subject: [PATCH] =?UTF-8?q?g5=5Fdelete=5Fcache=5Fby=5Fprefix=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=EB=82=B4=20=EC=9E=98=EB=AA=BB=EB=90=9C=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/cache.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cache.lib.php b/lib/cache.lib.php index 25790dd92..b416ea539 100644 --- a/lib/cache.lib.php +++ b/lib/cache.lib.php @@ -96,7 +96,7 @@ function g5_delete_cache_by_prefix($key){ $cache = get_cachemanage_instance(); $files = null; - if( (is_object($instance) && get_class($instance) === 'FileCache') ) { + if( (is_object($cache) && get_class($cache) === 'FileCache') ) { $files = glob(G5_DATA_PATH.'/cache/'.$key.'*'); foreach( (array) $files as $filename){ @@ -106,7 +106,7 @@ function g5_delete_cache_by_prefix($key){ } } - $files = run_replace('g5_delete_cache_by_prefix', $files, $key); + $files = run_replace('g5_delete_cache_by_prefix', $files, $key, $cache); return ($files) ? true : false; } \ No newline at end of file