Re: using cache
Sam Tregar <[email protected]> Tue, 24 Mar 2009 18:18:34 -0400
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
--===============0068626077505823764== Content-Type: multipart/alternative; boundary=000e0cd6ae328b09cc0465e4c393 --000e0cd6ae328b09cc0465e4c393 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Tue, Mar 24, 2009 at 5:39 PM, Dawid Joubert <[email protected]> wrote: > 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. > Good advice generally, but that doesn't appear to apply here. The log messages show the files coming back with the same cache signature. I'm guessing he's not running mod_perl which makes an in-memory cache pretty useless, or he is and he's not pre-caching during startup. > 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. > Memcached is a neat system. -sam --000e0cd6ae328b09cc0465e4c393 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Mar 24, 2009 at 5:39 PM, Dawid Joubert <span dir=3D"ltr"><<a hre= f=3D"mailto:[email protected]">[email protected]</a>></span> wrote:<br= ><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"bord= er-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-l= eft: 1ex;"> <div bgcolor=3D"#ffffff"> <div><font size=3D"2" face=3D"Arial">One problem you may find with the buil= t-in caching=20 is how it determines if a file has changed. It does this by getting the las= t=20 modified time of the file and then comparing it to the cache=20 version.</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div><font size=3D"2" face=3D"Arial">You should look into whether the modif= ication time=20 is cached.</font></div> <div><font size=3D"2" face=3D"Arial"></font></div></div></blockquote><div><= br>Good advice generally, but that doesn't appear to apply here.=A0 The= log messages show the files coming back with the same cache signature.=A0 = I'm guessing he's not running mod_perl which makes an in-memory cac= he pretty useless, or he is and he's not pre-caching during startup.<br= > =A0</div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid = rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgc= olor=3D"#ffffff"><div><font size=3D"2" face=3D"Arial">We wrote our own cach= e system with a preparser that=20 used memcache. As we had over 10 webapps servers we only needed to store on= e=20 copy of the template and that was on the memcached server.</font></div> <div></div></div></blockquote></div><br>Memcached is a neat system.<br><br>= -sam<br><br> --000e0cd6ae328b09cc0465e4c393-- --===============0068626077505823764== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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 --===============0068626077505823764== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Html-template-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/html-template-users --===============0068626077505823764==--