mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- bugfix add compile_id to cache key of of source (Issue 97)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
24.05.2012
|
||||
- bugfix Smarty_Internal_Write_File::writeFile() could cause race-conditions on linux systems (Issue 101)
|
||||
- bugfix attribute parameter names of plugins may now contain also "-" and ":" (Forum Topic 21856)
|
||||
- bugfix add compile_id to cache key of of source (Issue 97)
|
||||
|
||||
22.05.2012
|
||||
- bugfix recursive {include} within {section} did fail (Smarty developer group)
|
||||
|
@@ -493,6 +493,9 @@ abstract class Smarty_Resource {
|
||||
|
||||
// check runtime cache
|
||||
$_cache_key = 'template|' . $unique_resource_name;
|
||||
if ($smarty->compile_id) {
|
||||
$_cache_key .= '|'.$smarty->compile_id;
|
||||
}
|
||||
if (isset(self::$sources[$_cache_key])) {
|
||||
return self::$sources[$_cache_key];
|
||||
}
|
||||
|
Reference in New Issue
Block a user