|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
MicahCarrick Smarty n00b
Joined: 28 Sep 2009 Posts: 1
|
Posted: Mon Sep 28, 2009 11:11 pm Post subject: Disable cached output with auto-loaded plugins |
|
|
Can I control whether or not the output of a plugin is cached if the plugin is loaded using $smarty->plugin_dir[] instead of the register_x functions? |
|
Back to top |
|
olegs Smarty n00b
Joined: 11 Oct 2009 Posts: 2
|
Posted: Mon Oct 12, 2009 1:22 pm Post subject: |
|
|
I've found a 'hack' - add this command to the block
$smarty->_plugins['block']['myfunc'][4] = false;
e.g.
Code: | function smarty_block_myfunc($params, $content, &$smarty, &$repeat)
{
$smarty->_plugins['block']['myfunc'][4] = false;
.....
} |
Any better ideas? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|