Hi all,
I've got a question about caching and inheritance in Cheetah.
Say I have BaseTemplate.tmpl, which defines a code to iterate over a
list of pictures and display summary information about them.
Then say I have Flowers.tmpl and Trees.tmpl, both of which extend
BaseTemplate. These templates expect to be passed lists of flower
pictures and tree pictures, respectively.
Now, if the BaseTemplate performs caching on its list generation, will
the subclass templates store their lists in the same cache location, or
in different ones?
Obviously if it's the former, things are going to go pear-shaped
quickly, with people seeing trees instead of flowers, or vice versa.
Which is bad.
Can anyone comment on this, and suggest a best practice for managing
these situations?
Thanks,
Stuart
|