mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 10:13:25 +02:00
-bugfix and enhancement on subtemplate {include} and template {function} tags.
* Calling a template which has a nocache section could fail if it was called from a cached and a not cached subtemplate. * Calling the same subtemplate cached and not cached with the $smarty->merge_compiled_includes enabled could cause problems * Many smaller related changes
This commit is contained in:
@@ -762,7 +762,11 @@ class Smarty_Template_Source
|
||||
public function getCompiled($_template)
|
||||
{
|
||||
// check runtime cache
|
||||
$_cache_key = $this->unique_resource . '#' . $_template->compile_id;
|
||||
$_cache_key = $this->unique_resource . '#';
|
||||
if ($_template->caching) {
|
||||
$_cache_key .= 'caching#';
|
||||
}
|
||||
$_cache_key .= $_template->compile_id;
|
||||
if (isset(Smarty_Resource::$compileds[$_cache_key])) {
|
||||
return Smarty_Resource::$compileds[$_cache_key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user