<br><br><div><span class="gmail_quote">On 6/3/07, <b class="gmail_sendername">Jon Daley</b> <<a href="mailto:plogworld@jon.limedaley.com">plogworld@jon.limedaley.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 3 Jun 2007, Ahmad Saleh wrote:<br>> Are there any body solve plugins problem with caching?<br><br> Did you see the last conversation about it, maybe a couple months<br>ago? </blockquote><div><br>Yes, i see it.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I showed at least a partial solution, though I hadn't tried it yet,<br>but Oscar said we are probably moving in the other direction - ie. making
<br>cached pages have even less load, where my solution would increase the<br>load.</blockquote><div><br>And I also have another solution, I want to share it with you,<br>so please till me if you have any note about it:<br>
<br>1) Add ($isDynamic = false) field in PluginBase class.<br>2) In function (getPlugins()) in PluginManager class loads only non dynamic plugins and add another function (getDynamicPlugins()) that return only dynamic plugins.
<br>3) in BlogView class:<br><br>function render()<br> { <br> if( !$this->isCached() ) {<br> lt_include( PLOG_CLASS_PATH.'class/data/plogcalendar.class.php' );<br> .
<br> .<br> $plugins = $this->_pm->getPlugins();<br> foreach( $plugins as $name => $plugin ) {<br> $this->setValue( $name, $plugin );<br> }
<br>+ } else {<br>+ $plugins = $this->_pm->getDynamicPlugins();<br>+ foreach( $plugins as $name => $plugin ) {<br>+ $this->setValue( $name, $plugin );
<br>+ }<br> }<br> .<br> .<br><br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My guess is that the code paths will be too different to have a<br>configuration option for people who want to give up the performance in<br>order to be able to use {dynamic} with plugins.<br><br>--<br>Jon Daley<br><a href="http://jon.limedaley.com/">
http://jon.limedaley.com/</a><br><br>Am I going to live life with a passion? Surrender to God -<br>then see people as God sees them. Live life with abandon.<br>-- Jubilee 2001<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>Regards,<br> Ahmad<br>