mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
swapped around cache_id and compile_id order
This commit is contained in:
@@ -455,8 +455,10 @@ class Smarty
|
|||||||
if (!isset($compile_id))
|
if (!isset($compile_id))
|
||||||
$compile_id = $this->compile_id;
|
$compile_id = $this->compile_id;
|
||||||
|
|
||||||
if (isset($compile_id) || isset($cache_id))
|
if (isset($cache_id))
|
||||||
$auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
|
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id;
|
||||||
|
elseif(isset($compile_id))
|
||||||
|
$auto_id = $compile_id;
|
||||||
else
|
else
|
||||||
$auto_id = null;
|
$auto_id = null;
|
||||||
|
|
||||||
@@ -1546,8 +1548,10 @@ function _run_insert_handler($args)
|
|||||||
return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id);
|
return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id);
|
||||||
} else {
|
} else {
|
||||||
// use local cache file
|
// use local cache file
|
||||||
if (isset($compile_id) || isset($cache_id))
|
if (isset($cache_id))
|
||||||
$auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
|
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id;
|
||||||
|
elseif(isset($compile_id))
|
||||||
|
$auto_id = $compile_id;
|
||||||
else
|
else
|
||||||
$auto_id = null;
|
$auto_id = null;
|
||||||
|
|
||||||
@@ -1581,9 +1585,11 @@ function _run_insert_handler($args)
|
|||||||
$funcname = $this->cache_handler_func;
|
$funcname = $this->cache_handler_func;
|
||||||
$funcname('read', $this, $results, $tpl_file, $cache_id, $compile_id);
|
$funcname('read', $this, $results, $tpl_file, $cache_id, $compile_id);
|
||||||
} else {
|
} else {
|
||||||
// use local file cache
|
// use local cache file
|
||||||
if (isset($compile_id) || isset($cache_id))
|
if (isset($cache_id))
|
||||||
$auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
|
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id;
|
||||||
|
elseif(isset($compile_id))
|
||||||
|
$auto_id = $compile_id;
|
||||||
else
|
else
|
||||||
$auto_id = null;
|
$auto_id = null;
|
||||||
|
|
||||||
|
@@ -455,8 +455,10 @@ class Smarty
|
|||||||
if (!isset($compile_id))
|
if (!isset($compile_id))
|
||||||
$compile_id = $this->compile_id;
|
$compile_id = $this->compile_id;
|
||||||
|
|
||||||
if (isset($compile_id) || isset($cache_id))
|
if (isset($cache_id))
|
||||||
$auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
|
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id;
|
||||||
|
elseif(isset($compile_id))
|
||||||
|
$auto_id = $compile_id;
|
||||||
else
|
else
|
||||||
$auto_id = null;
|
$auto_id = null;
|
||||||
|
|
||||||
@@ -1546,8 +1548,10 @@ function _run_insert_handler($args)
|
|||||||
return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id);
|
return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id);
|
||||||
} else {
|
} else {
|
||||||
// use local cache file
|
// use local cache file
|
||||||
if (isset($compile_id) || isset($cache_id))
|
if (isset($cache_id))
|
||||||
$auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
|
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id;
|
||||||
|
elseif(isset($compile_id))
|
||||||
|
$auto_id = $compile_id;
|
||||||
else
|
else
|
||||||
$auto_id = null;
|
$auto_id = null;
|
||||||
|
|
||||||
@@ -1581,9 +1585,11 @@ function _run_insert_handler($args)
|
|||||||
$funcname = $this->cache_handler_func;
|
$funcname = $this->cache_handler_func;
|
||||||
$funcname('read', $this, $results, $tpl_file, $cache_id, $compile_id);
|
$funcname('read', $this, $results, $tpl_file, $cache_id, $compile_id);
|
||||||
} else {
|
} else {
|
||||||
// use local file cache
|
// use local cache file
|
||||||
if (isset($compile_id) || isset($cache_id))
|
if (isset($cache_id))
|
||||||
$auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
|
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id;
|
||||||
|
elseif(isset($compile_id))
|
||||||
|
$auto_id = $compile_id;
|
||||||
else
|
else
|
||||||
$auto_id = null;
|
$auto_id = null;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user