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?<br><br>Thanks,<br>Ma&#39;moon
<br><br><div><span class="gmail_quote">On 5/2/07, <b class="gmail_sendername">Jon Daley</b> &lt;<a href="mailto:plogworld@jon.limedaley.com">plogworld@jon.limedaley.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="http://bugs.lifetype.net/view.php?id=293">http://bugs.lifetype.net/view.php?id=293</a><br><br>We have talked about this a long time ago, and came up with the conclusion<br>that plugins can&#39;t work inside the {dynamic} tag. It turns out that isn&#39;t
<br>really true.<br><br>The problem is in class/view/blogview.class.php, where a bunch of template<br>objects are only included if the template isn&#39;t cached.&nbsp;&nbsp;If you move the<br>plugin for loop (or the $now) code, those variables are available inside a
<br>{dynamic} tag.<br><br>However, since that increases the RAM used for cached pages, we don&#39;t want<br>to just put everything outside the if(!cached) block.<br><br>I was wondering about either letting the plugins decide themselves if they
<br>should be loaded or not, or check the template to see if there is a<br>{dynamic} tag or have an administration preference that says &quot;Allow<br>plugins inside dynamic tags.&nbsp;&nbsp;I am not sure what would be the easiest or
<br>best.&nbsp;&nbsp;Any thoughts?<br><br>I see now that for the plugins the objects are already loaded even in a<br>cached view (I think) but the call to PluginManager-&gt;getPlugins calls<br>register() for each plugin in the non-cached view as opposed to the cached
<br>view.&nbsp;&nbsp;Maybe that overhead isn&#39;t that much?<br><br><br>_______________________________________________<br>pLog-svn mailing list<br><a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br><a href="http://limedaley.com/mailman/listinfo/plog-svn">
http://limedaley.com/mailman/listinfo/plog-svn</a><br></blockquote></div><br>