fixed f5565a91 template caching ssettings

This commit is contained in:
following
2013-07-15 00:53:28 +02:00
parent 0e84773211
commit 7789ca955e
3 changed files with 3 additions and 9 deletions

View File

@@ -52,7 +52,7 @@
/* Debug level (combine with OR | )
* DEBUG_NO = productive use
* DEBUG_DEVELOPER = developer system
* DEBUG_TEMPLATES = no template caching
* DEBUG_TEMPLATES = no template caching; makes some templates very slow!
* DEBUG_OUTOFSERVICE = only admin login (includes DEBUG_TEMPLATES)
* DEBUG_TESTING = display warning (includes DEBUG_TEMPLATES)
* DEBUG_SQLDEBUGGER = sql debugger (use &sqldebug=1 when calling the site)
@@ -60,9 +60,7 @@
* DEBUG_FORCE_TRANSLATE = force read of translate messages
* DEBUG_CLI = print debug messages of cli scripts
*/
$opt['debug'] = DEBUG_DEVELOPER|DEBUG_TEMPLATES|DEBUG_SQLDEBUGGER|DEBUG_TRANSLATE|DEBUG_FORCE_TRANSLATE;
//$opt['debug'] = DEBUG_DEVELOPER|DEBUG_TEMPLATES|DEBUG_SQLDEBUGGER;
//$opt['debug'] = DEBUG_DEVELOPER|DEBUG_SQLDEBUGGER;
$opt['debug'] = DEBUG_DEVELOPER|DEBUG_SQLDEBUGGER|DEBUG_TRANSLATE|DEBUG_FORCE_TRANSLATE;
// node options
// see settings-dist.inc.php for known node IDs

View File

@@ -160,7 +160,7 @@
/* Debug level (combine with OR | )
* DEBUG_NO = productive use
* DEBUG_DEVELOPER = developer system
* DEBUG_TEMPLATES = no template caching
* DEBUG_TEMPLATES = no template caching; makes some templates very slow!
* DEBUG_OUTOFSERVICE = only admin login (includes DEBUG_TEMPLATES)
* DEBUG_TESTING = display warning (includes DEBUG_TEMPLATES)
* DEBUG_SQLDEBUGGER = sql debugger (use &sqldebug=1 when calling the site)

View File

@@ -62,12 +62,8 @@ class OcSmarty extends Smarty
$this->load_filter('output', 'session');
// cache control
/* This will make templates with many includes (e.g. search result list,
images galleries ..) VERY slow, and it is not necessary - auto-compile
when file time is touched will work find. -- following 2013/7/13
if (($opt['debug'] & DEBUG_TEMPLATES) == DEBUG_TEMPLATES)
$this->force_compile = true;
*/
// process debug level
if (($opt['debug'] & DEBUG_SQLDEBUGGER) == DEBUG_SQLDEBUGGER)