Update include/serendipity_smarty_class.inc.php
re-added prev removed disabled config switch
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
<?php // (experimental) serendipity_smarty_class.inc.php 2012-01-03 14:11 Ian
|
<?php
|
||||||
|
// (experimental) serendipity_smarty_class.inc.php 2013-01-21 17:08 Ian
|
||||||
|
|
||||||
// define secure_dir and trusted_dirs for Serendipity_Smarty_Security_Policy class.
|
// define secure_dir and trusted_dirs for Serendipity_Smarty_Security_Policy class.
|
||||||
@define('S9Y_TEMPLATE_FALLBACK', $serendipity['serendipityPath'] . $serendipity['templatePath'] . 'default');
|
@define('S9Y_TEMPLATE_FALLBACK', $serendipity['serendipityPath'] . $serendipity['templatePath'] . 'default');
|
||||||
@ -191,7 +192,7 @@ class Serendipity_Smarty extends Smarty
|
|||||||
$cache_modified_check only works if you're using display() - it won't do anything on fetch().
|
$cache_modified_check only works if you're using display() - it won't do anything on fetch().
|
||||||
It won't do anything if you have non-caching plugins or {insert} tags, either.
|
It won't do anything if you have non-caching plugins or {insert} tags, either.
|
||||||
|
|
||||||
We're working on making this more intelligent for 3.2, but<75> work with what you've got in 3.1 first.
|
We're working on making this more intelligent for 3.2, but<75> work with what you've got in 3.1 first.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// some documentary from the smarty forum
|
// some documentary from the smarty forum
|
||||||
@ -228,7 +229,7 @@ class Serendipity_Smarty extends Smarty
|
|||||||
|
|
||||||
you can do $force_cache = true; to make the current page re-render to cache. This actually allows you to work with a very high
|
you can do $force_cache = true; to make the current page re-render to cache. This actually allows you to work with a very high
|
||||||
cache_lifetime and poll a secondary modified time from somewhere. You could then implement the serve-stale-until-updated caching approach.
|
cache_lifetime and poll a secondary modified time from somewhere. You could then implement the serve-stale-until-updated caching approach.
|
||||||
I'll blog about this<69> probably around christmas
|
I'll blog about this<69> probably around christmas
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// set the cache_lifetime for index.tpl to 5 minutes
|
// set the cache_lifetime for index.tpl to 5 minutes
|
||||||
@ -311,7 +312,9 @@ class Serendipity_Smarty extends Smarty
|
|||||||
// set smarty error reporting. General error_reporting is set in serendipity/serendipity_config.inc.php
|
// set smarty error reporting. General error_reporting is set in serendipity/serendipity_config.inc.php
|
||||||
$this->error_reporting = E_ALL & ~(E_NOTICE|E_STRICT);
|
$this->error_reporting = E_ALL & ~(E_NOTICE|E_STRICT);
|
||||||
|
|
||||||
}
|
// we use our own error_handler and get in conflicts with smarty?
|
||||||
|
// $this->muteExpectedErrors();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Note: Ian
|
Note: Ian
|
||||||
|
Reference in New Issue
Block a user