fix cache groups behavior with compile_id set

This commit is contained in:
mohrt
2003-02-20 15:30:46 +00:00
parent 25fece8a82
commit 15f982004c
3 changed files with 11 additions and 10 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- fix cache groups with compile_id set (Monte)
- add support for appending key=>value vars (messju, Monte) - add support for appending key=>value vars (messju, Monte)
- change embedded variable logic to only recognize $foo and - change embedded variable logic to only recognize $foo and
$foo[0][bar] and $smarty.foo.bar syntax (Monte) $foo[0][bar] and $smarty.foo.bar syntax (Monte)

View File

@@ -32,9 +32,9 @@
* Lincoln, NE 68510 * Lincoln, NE 68510
* *
* The latest version of Smarty can be obtained from: * The latest version of Smarty can be obtained from:
* http://www.phpinsider.com/ * http://smarty.php.net/
* *
* @link http://www.phpinsider.com/ * @link http://smarty.php.net/
* @copyright 2001,2002 ispi of Lincoln, Inc. * @copyright 2001,2002 ispi of Lincoln, Inc.
* @author Monte Ohrt <monte@ispi.net> * @author Monte Ohrt <monte@ispi.net>
* @author Andrei Zmievski <andrei@php.net> * @author Andrei Zmievski <andrei@php.net>
@@ -902,7 +902,7 @@ class Smarty
$compile_id = $this->compile_id; $compile_id = $this->compile_id;
if (isset($cache_id)) if (isset($cache_id))
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id; $auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
elseif(isset($compile_id)) elseif(isset($compile_id))
$auto_id = $compile_id; $auto_id = $compile_id;
else else
@@ -2250,7 +2250,7 @@ class Smarty
} else { } else {
// use local cache file // use local cache file
if (isset($cache_id)) if (isset($cache_id))
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id; $auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
elseif(isset($compile_id)) elseif(isset($compile_id))
$auto_id = $compile_id; $auto_id = $compile_id;
else else
@@ -2292,7 +2292,7 @@ class Smarty
} else { } else {
// use local cache file // use local cache file
if (isset($cache_id)) if (isset($cache_id))
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id; $auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
elseif(isset($compile_id)) elseif(isset($compile_id))
$auto_id = $compile_id; $auto_id = $compile_id;
else else

View File

@@ -32,9 +32,9 @@
* Lincoln, NE 68510 * Lincoln, NE 68510
* *
* The latest version of Smarty can be obtained from: * The latest version of Smarty can be obtained from:
* http://www.phpinsider.com/ * http://smarty.php.net/
* *
* @link http://www.phpinsider.com/ * @link http://smarty.php.net/
* @copyright 2001,2002 ispi of Lincoln, Inc. * @copyright 2001,2002 ispi of Lincoln, Inc.
* @author Monte Ohrt <monte@ispi.net> * @author Monte Ohrt <monte@ispi.net>
* @author Andrei Zmievski <andrei@php.net> * @author Andrei Zmievski <andrei@php.net>
@@ -902,7 +902,7 @@ class Smarty
$compile_id = $this->compile_id; $compile_id = $this->compile_id;
if (isset($cache_id)) if (isset($cache_id))
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id; $auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
elseif(isset($compile_id)) elseif(isset($compile_id))
$auto_id = $compile_id; $auto_id = $compile_id;
else else
@@ -2250,7 +2250,7 @@ class Smarty
} else { } else {
// use local cache file // use local cache file
if (isset($cache_id)) if (isset($cache_id))
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id; $auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
elseif(isset($compile_id)) elseif(isset($compile_id))
$auto_id = $compile_id; $auto_id = $compile_id;
else else
@@ -2292,7 +2292,7 @@ class Smarty
} else { } else {
// use local cache file // use local cache file
if (isset($cache_id)) if (isset($cache_id))
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id; $auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
elseif(isset($compile_id)) elseif(isset($compile_id))
$auto_id = $compile_id; $auto_id = $compile_id;
else else