Skip to content

Commit

Permalink
refs #1828 : add - CACHE_DIR setup to code.
Browse files Browse the repository at this point in the history
 * TODO :
  * [ ] checkup
  * [ ] migration
  • Loading branch information
inureyes committed Jul 15, 2015
1 parent b941042 commit 7cae37f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion framework/legacy/Needlworks.Cache.PageCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions interface/blog/checkup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions library/preprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 7cae37f

Please sign in to comment.