[PHPTAL] Template lastModified time

Maciej Łebkowski m.lebkowski at gmail.com
Sun Nov 16 14:01:31 CET 2008


Hello!

I am doing some content negotiation in my application. In particular,
i`m settign LastModified, ETag, etc headers, and checking if content
is modified (and returning 304 response if its not).

Now I have:
    $LastModified = isset($data['LastModified']) ? $data['LastModified'] : null;

But I didn`t take into account any template changes. Is there
a way to get the maximun filemtime() of all used templates?

After/before execute is called, no matter.

-- 
Maciej Łebkowski, http://lebkowski.info/kontakt.php


More information about the PHPTAL mailing list