mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
07.02.2012
|
07.02.2012
|
||||||
- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996)
|
- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996)
|
||||||
|
- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000)
|
||||||
|
|
||||||
06.02.2012
|
06.02.2012
|
||||||
- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)
|
- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)
|
||||||
|
@@ -509,11 +509,13 @@ abstract class Smarty_Internal_TemplateCompilerBase {
|
|||||||
{
|
{
|
||||||
$callback = null;
|
$callback = null;
|
||||||
$script = null;
|
$script = null;
|
||||||
|
$cacheable = true;
|
||||||
$result = call_user_func_array(
|
$result = call_user_func_array(
|
||||||
$this->smarty->default_plugin_handler_func,
|
$this->smarty->default_plugin_handler_func,
|
||||||
array($tag, $plugin_type, $this->template, &$callback, &$script)
|
array($tag, $plugin_type, $this->template, &$callback, &$script, &$cacheable)
|
||||||
);
|
);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
$this->tag_nocache = $this->tag_nocache || !$cacheable;
|
||||||
if ($script !== null) {
|
if ($script !== null) {
|
||||||
if (is_file($script)) {
|
if (is_file($script)) {
|
||||||
if ($this->template->caching && ($this->nocache || $this->tag_nocache)) {
|
if ($this->template->caching && ($this->nocache || $this->tag_nocache)) {
|
||||||
|
Reference in New Issue
Block a user