[Catalyst] Catalyst::View::TT - strange caching annoyance

Brian Kirkbride brian.kirkbride at deeperbydesign.com
Wed Sep 13 19:31:18 CEST 2006


Einon wrote:
> Hi!
> 
> I found an interesting bug in Catalyst::View::TT. Catalyst caches wrong 
> templates even if I do not use caching.
> 
> I created a fresh application with catalyst.pl, added some templates,
> modified the MyApp.pm according to my needs, and finally I added a TT view.
> 
> After fireing up the application with './script/myapp_server.pl -d' I 
> checked if it works. It did. Then I modified the Display.hu.tt template 
> to get a syntax error (I did this with removing the [% END %] block of 
> the IF conditon.
> 
> When I called the default handler again, of course I got error:
> ---
> [error] Coldn't render template "file error - parse error - 
> Display.hu.tt line 9: unexpected end of input"
> ---
> After this I put back the [% END %] block and reloaded the page,
> catalyst sent me an another message:
> ---
> [error] Coldn't render template "file error - setup: not found"
> --
> After restarting the cat app, the same template works again.
> 
> Sorry for this kind of bugreport... :)
> 
> 
> 
> Bye!
> 	Einon
> 
>

I have had this problem too, please see the solution here:

http://www.mail-archive.com/catalyst@lists.rawmode.org/msg00823.html

- Brian



More information about the Catalyst mailing list