[pLog-svn] Add the cache control to menu

Mark Wu markplace at gmail.com
Sun Feb 24 23:16:06 EST 2008


Hi Oscar:
 
In my test, it reduce the total request time from 534 ms to 440 ms. It saved
almost 100ms in my installation.
 
So, I think it worth to try ... :)
 
Mark


  _____  

From: plog-svn-bounces at devel.lifetype.net
[mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Oscar Renalias
Sent: Thursday, February 21, 2008 4:58 AM
To: LifeType Developer List
Subject: Re: [pLog-svn] Add the cache control to menu


How about some benchmarks? Would you have some time to look into generating
some benchmarks? Numbers don't lie :) 

On Feb 19, 2008, at 6:59 AM, Mark Wu wrote:


Hi All:
 
After review the code, it is not easy to replace the current XML menu with
array tree. 
 
So, I try to add the cache to XML menu first.
 
1. The menu cache will cache our core xml menus plus plugins' menus. After
lifetype cache it, the menu will load from cache directly until the cache
expired or deleted.
 
2. If the method works, I will add remove cache in plugins centers.
Therefore, the cache will removed when we add/remove/refresh the plugins
center.
 
If any one of you have time, please kindly test this cached version script,
and let me know if it help performance or not.
 
Regards, Mark
<menu.class.php>_______________________________________________
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/20080225/aa97e4c8/attachment.htm 


More information about the pLog-svn mailing list