mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
Modified _(push|pop)_cacheable_state() to embedd alternate syntax. See this bug report: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=10502
This commit is contained in:
@@ -2238,9 +2238,9 @@ class Smarty_Compiler extends Smarty {
|
||||
if ($_cacheable
|
||||
|| 0<$this->_cacheable_state++) return '';
|
||||
if (!isset($this->_cache_serial)) $this->_cache_serial = md5(uniqid('Smarty'));
|
||||
$_ret = 'if ($this->caching && !$this->_cache_including) { echo \'{nocache:'
|
||||
$_ret = 'if ($this->caching && !$this->_cache_including): echo \'{nocache:'
|
||||
. $this->_cache_serial . '#' . $this->_nocache_count
|
||||
. '}\'; };';
|
||||
. '}\'; endif;';
|
||||
return $_ret;
|
||||
}
|
||||
|
||||
@@ -2255,9 +2255,9 @@ class Smarty_Compiler extends Smarty {
|
||||
$_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4];
|
||||
if ($_cacheable
|
||||
|| --$this->_cacheable_state>0) return '';
|
||||
return 'if ($this->caching && !$this->_cache_including) { echo \'{/nocache:'
|
||||
return 'if ($this->caching && !$this->_cache_including): echo \'{/nocache:'
|
||||
. $this->_cache_serial . '#' . ($this->_nocache_count++)
|
||||
. '}\'; };';
|
||||
. '}\'; endif;';
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user