Re: [htmltmpl] using cache
Brought to you by:
samtregar
From: Dawid J. <djs...@gm...> - 2009-03-24 21:40:09
|
One problem you may find with the built-in caching is how it determines if a file has changed. It does this by getting the last modified time of the file and then comparing it to the cache version. You should look into whether the modification time is cached. I do not suggest you use the built-in cache as you should use one caching system for your entire setup. Memcached is the recommended one as once it runs out of memory it will discard the least accessed caches. We wrote our own cache system with a preparser that used memcache. As we had over 10 webapps servers we only needed to store one copy of the template and that was on the memcached server. Regards Dawid Joubert ----- Original Message ----- From: Sam Tregar To: ma...@co... Cc: htm...@li... Sent: Tuesday, March 24, 2009 8:45 PM Subject: Re: [htmltmpl] using cache 2009/3/24 <ma...@co...> as a new user to html::templates i've found it pretty easy to use but quite slow. i've turned on cache'ing but there is still no improvement and apache's log indicates that the files are being loaded each time. so, what am i doing wrong? i've included the perl code i use to create the template and the results shown in apache's log. this shows, i believe, that each file is being loaded each time it's referenced. it also shows another problem, that i encounter every so often, that the file can't be found when, in fact, it's there. if i simply reload the page the file is found the 2nd time. very confusing. Are you running mod_perl? Are you pre-loading your cache during apache startup as described in the docs? And finally, what makes you sure HTML::Template is the source of your performance problem? It's actually pretty rare in my experience. -sam ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ------------------------------------------------------------------------------ _______________________________________________ Html-template-users mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/html-template-users |