mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 12:14:12 +02:00
update of cache resources for template function calls in nocache mode
This commit is contained in:
@@ -449,4 +449,19 @@ class Smarty_Template_Cached
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read cache content from handler
|
||||
*
|
||||
* @param Smarty_Internal_Template $_template template object
|
||||
*
|
||||
* @return string content
|
||||
*/
|
||||
public function read(Smarty_Internal_Template $_template)
|
||||
{
|
||||
if (!$_template->source->recompiled) {
|
||||
return $this->handler->readCachedContent($_template);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user