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

Jonathan Rockway jon at jrock.us
Wed Sep 13 18:53:41 CEST 2006

However, TT should update its cache automagically (keyed on mtime) --
even if you use the "full" compiled (to-disk) template cache.


0. What version of TT, Catalyst, and C::V::TT are you using?
  (Find out with perl -MCatalyst -e 'print Catalyst->VERSION', etc.)

1. Can you provide us with a case where regular TT correctly refreshes
the template, but C::V::TT doesn't?

2. If not (i.e. regular TT breaks too), do mtimes work on your system?

My guess is that something is wrong with your system; outdated TT, buggy
filesystem, etc.  It's very possible that I'm completely wrong, but my
templates are fully cached (on disk) and do update properly.  I haven't
tried the code you sent because it's too complicated and is certainly
not the minimum required to reproduce the bug.  Does:

cat > root/test.tt2 << EOF
Hello, world?

change when you apply

- Hello, world?
+ Hello, world! This changed!

Something like that would be much simpler for me (and others) to test.

Jonathan Rockway

Jason Kohles wrote:
> On 9/13/06, Einon <einon at animehq.hu> wrote:
>> Hi!
>> I found an interesting bug in Catalyst::View::TT. Catalyst caches wrong
>> templates even if I do not use caching.
> Regardless of whether you have Catalyst configured to do caching,
> Template Toolkit does it's own in-memory caching by default.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 368 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060913/af1a4720/attachment.pgp 

More information about the Catalyst mailing list