[pLog-svn] {dynamic} tags and plugins

Ma'moon soosas at gmail.com
Wed May 2 12:05:43 EDT 2007


regarding the {dynamic} tag, is there any implementation for the {insert}
smarty tag in lifeType which enables parts of the templates NOT to be cached
while keeping the rest of the template cached?

Thanks,
Ma'moon

On 5/2/07, Jon Daley <plogworld at jon.limedaley.com> wrote:
>
> http://bugs.lifetype.net/view.php?id=293
>
> We have talked about this a long time ago, and came up with the conclusion
> that plugins can't work inside the {dynamic} tag. It turns out that isn't
> really true.
>
> The problem is in class/view/blogview.class.php, where a bunch of template
> objects are only included if the template isn't cached.  If you move the
> plugin for loop (or the $now) code, those variables are available inside a
> {dynamic} tag.
>
> However, since that increases the RAM used for cached pages, we don't want
> to just put everything outside the if(!cached) block.
>
> I was wondering about either letting the plugins decide themselves if they
> should be loaded or not, or check the template to see if there is a
> {dynamic} tag or have an administration preference that says "Allow
> plugins inside dynamic tags.  I am not sure what would be the easiest or
> best.  Any thoughts?
>
> I see now that for the plugins the objects are already loaded even in a
> cached view (I think) but the call to PluginManager->getPlugins calls
> register() for each plugin in the non-cached view as opposed to the cached
> view.  Maybe that overhead isn't that much?
>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://limedaley.com/pipermail/plog-svn/attachments/20070502/41a80331/attachment.htm 


More information about the pLog-svn mailing list