Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Disable cached output with auto-loaded plugins

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
MicahCarrick
Smarty n00b


Joined: 28 Sep 2009
Posts: 1

PostPosted: Mon Sep 28, 2009 11:11 pm    Post subject: Disable cached output with auto-loaded plugins Reply with quote

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
View user's profile Send private message
olegs
Smarty n00b


Joined: 11 Oct 2009
Posts: 2

PostPosted: Mon Oct 12, 2009 1:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP