X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2Flibs%2Finternals%2Fcore.write_cache_file.php;h=fa3cdd746d7342f055f269aa23dc4f40fb41fe4b;hb=9b7c11be09e7a553b26667f673c6315209ddc210;hp=edccfbd5e90a343f6af2f005b24aaf4cefcf46c8;hpb=95a6ccc277bc41d750ced09fe5a1a779bde342c7;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/libs/internals/core.write_cache_file.php b/wwwroot/smarty/libs/internals/core.write_cache_file.php index edccfbd..fa3cdd7 100644 --- a/wwwroot/smarty/libs/internals/core.write_cache_file.php +++ b/wwwroot/smarty/libs/internals/core.write_cache_file.php @@ -37,10 +37,10 @@ function smarty_core_write_cache_file($params, &$smarty) // and replace it by a single nocache-tag // this new nocache-tag will be replaced by dynamic contents in // smarty_core_process_compiled_includes() on a cache-read - + $match_count = count($match[0]); $results = preg_split('!(\{/?nocache\:[0-9a-f]{32}#\d+\})!', $params['results'], -1, PREG_SPLIT_DELIM_CAPTURE); - + $level = 0; $j = 0; for ($i=0, $results_count = count($results); $i < $results_count && $j < $match_count; $i++) { @@ -68,7 +68,7 @@ function smarty_core_write_cache_file($params, &$smarty) if (!empty($smarty->cache_handler_func)) { // use cache_handler function call_user_func_array($smarty->cache_handler_func, - array('write', &$smarty, &$params['results'], $params['tpl_file'], $params['cache_id'], $params['compile_id'], null)); + array('write', &$smarty, &$params['results'], $params['tpl_file'], $params['cache_id'], $params['compile_id'], $smarty->_cache_info['expires'])); } else { // use local cache file