From fed1bf425c2c462b7a7a0d0691fcea88b38e40fa Mon Sep 17 00:00:00 2001 From: bnu Date: Thu, 8 May 2014 10:29:34 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"=EC=9C=84=EC=A0=AF=20=EC=BA=90?= =?UTF-8?q?=EC=8B=B1=20=EC=84=A4=EC=A0=95=20=EC=8B=9C=20memcache=EB=82=98?= =?UTF-8?q?=20apc=EC=97=90=20=EC=A0=80=EC=9E=A5=ED=95=A0=20=EC=88=98=20?= =?UTF-8?q?=EC=9E=88=EB=8F=84=EB=A1=9D=20=EA=B0=9C=EC=84=A0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 127fca81e006432d763a1c3674c18a8ab0a963c2. --- modules/widget/widget.controller.php | 71 ++++++++++------------------ 1 file changed, 24 insertions(+), 47 deletions(-) diff --git a/modules/widget/widget.controller.php b/modules/widget/widget.controller.php index 613ea39d3..8c6587b9d 100644 --- a/modules/widget/widget.controller.php +++ b/modules/widget/widget.controller.php @@ -374,58 +374,35 @@ class widgetController extends widget return $widget_content; } - $oCacheHandler = CacheHandler::getInstance('template'); - if($oCacheHandler->isSupport()) + /** + * Cache number and cache values are set so that the cache file should call + */ + FileHandler::makeDir($this->cache_path); + // Wanted cache file + $cache_file = sprintf('%s%d.%s.cache', $this->cache_path, $widget_sequence, $lang_type); + // If the file exists in the cache, the file validation + if(!$ignore_cache && file_exists($cache_file)) { - $key = 'widget_cache:' . $widget_sequence; - - $cache_body = $oCacheHandler->get($key); - $cache_body = preg_replace('@<\!--#Meta:@', '