diff --git a/framework/legacy/Needlworks.Cache.PageCache.php b/framework/legacy/Needlworks.Cache.PageCache.php index de402999e..a954a933c 100644 --- a/framework/legacy/Needlworks.Cache.PageCache.php +++ b/framework/legacy/Needlworks.Cache.PageCache.php @@ -722,7 +722,7 @@ function flushItemsByPlugin($pluginName) { unset($tag); } // if ($xmls->doesExist('/plugin/binding/sidebar')) { -// TODO: 사이드바 캐시때 처리하도록 하지요. +// TODO: 사이드바 캐시때 처리하도록 하지요. // } if ($xmls->doesExist('/plugin/binding/formatter[lang()]')) { CacheControl::flushCategory(); diff --git a/interface/blog/checkup.php b/interface/blog/checkup.php index 2cf7dc3b1..fd270f319 100644 --- a/interface/blog/checkup.php +++ b/interface/blog/checkup.php @@ -255,11 +255,11 @@ function clearCache() { RewriteEngine On RewriteBase ".$context->getProperty('service.path')."/ RewriteCond %{REQUEST_FILENAME} -f -RewriteRule ^(cache)+/+(.+[^/])\\.(cache|xml|txt|log)$ - [NC,F,L] +RewriteRule ^user/(cache)+/+(.+[^/])\\.(cache|xml|txt|log)$ - [NC,F,L] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+[^/])$ $1/ [L] RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule ^(thumbnail)/([0-9]+/.+)$ cache/$1/$2 [L] +RewriteRule ^(thumbnail)/([0-9]+/.+)$ user/cache/$1/$2 [L] RewriteRule ^(.*)$ rewrite.php [L,QSA] "; $fp = fopen($filename, "w"); diff --git a/library/preprocessor.php b/library/preprocessor.php index f9fbd0073..aa3f79bed 100644 --- a/library/preprocessor.php +++ b/library/preprocessor.php @@ -76,8 +76,8 @@ /// Setting basic paths $predefinedPaths = array( '__TEXTCUBE_CONFIG_FILE__'=> ROOT . '/config.php', - '__TEXTCUBE_CACHE_DIR__'=> ROOT . '/cache', - '__TEXTCUBE_ATTACH_DIR__'=>ROOT . '/attach' + '__TEXTCUBE_CACHE_DIR__'=> ROOT . '/user/cache', + '__TEXTCUBE_ATTACH_DIR__'=>ROOT . '/user/attach' ); foreach ($predefinedPaths as $symbol=>$location) { if(!defined($symbol)) { diff --git a/setup.php b/setup.php index b8c789837..a447bb47a 100644 --- a/setup.php +++ b/setup.php @@ -9,7 +9,7 @@ define('ROOT','.'); //if (!defined('__TEXTCUBE_CACHE_DIR__')) { - define('__TEXTCUBE_CACHE_DIR__', ROOT . '/user/cache');≈x + define('__TEXTCUBE_CACHE_DIR__', ROOT . '/user/cache'); //} require ROOT.'/framework/id/textcube/config.default.php';