fixed problems with cached templates containing nocache sections when

they where displayed multiple times during a single request
This commit is contained in:
messju
2005-07-08 18:11:22 +00:00
parent 96f99ccc9a
commit edab07b69d
2 changed files with 5 additions and 10 deletions

View File

@@ -20,6 +20,11 @@ function smarty_core_process_compiled_include($params, &$smarty)
$smarty->_cache_including = true;
$_return = $params['results'];
foreach ($smarty->_cache_info['cache_serials'] as $_include_file_path=>$_cache_serial) {
$smarty->_include($_include_file_path, true);
}
foreach ($smarty->_cache_serials as $_include_file_path=>$_cache_serial) {
$_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s',
array(&$smarty, '_process_compiled_include_callback'),