[Catalyst] Catalyst::View::TT - strange caching annoyance
jon at jrock.us
Wed Sep 13 20:30:41 CEST 2006
Good find. The whole complicated [% BLOCK %] business that I was
complaining about was actually the problem. I admit to never having
used [% BLOCK %], so that's why I didn't run into the problem.
Brian Kirkbride wrote:
> Einon wrote:
>> 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... :)
> I have had this problem too, please see the solution here:
> - Brian
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://firstname.lastname@example.org/
> Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 368 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060913/2c7c27bf/attachment-0001.pgp
More information about the Catalyst