Re: using cache

Sam Tregar <[email protected]> Tue, 24 Mar 2009 16:45:09 -0400
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
--===============2729060482208980513==
Content-Type: multipart/alternative; boundary=000e0cd403327ce4e30465e3751b

--000e0cd403327ce4e30465e3751b
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

2009/3/24 <[email protected]>

> 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

--000e0cd403327ce4e30465e3751b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

2009/3/24  <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">mai=
[email protected]</a>&gt;</span><br><div class=3D"gmail_quote"><blockquote c=
lass=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); ma=
rgin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
as a new user to html::templates i&#39;ve found it pretty easy to use but<b=
r>
quite slow. =A0i&#39;ve turned on cache&#39;ing but there is still no<br>
improvement and apache&#39;s log indicates that the files are being loaded<=
br>
each time. =A0so, what am i doing wrong? =A0i&#39;ve included the perl code=
 i<br>
use to create the template and the results shown in apache&#39;s log.<br>
this shows, i believe, that each file is being loaded each time it&#39;s<br=
>
referenced. =A0it also shows another problem, that i encounter every so<br>
often, that the file can&#39;t be found when, in fact, it&#39;s there. =A0i=
f i<br>
simply reload the page the file is found the 2nd time. =A0very confusing.<b=
r>
</blockquote><div><br>Are you running mod_perl?=A0 Are you pre-loading your=
 cache during apache startup as described in the docs?=A0 And finally, what=
 makes you sure HTML::Template is the source of your performance problem?=
=A0 It&#39;s actually pretty rare in my experience.<br>
<br>-sam<br><br></div></div>

--000e0cd403327ce4e30465e3751b--


--===============2729060482208980513==
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
--===============2729060482208980513==
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

--===============2729060482208980513==--