Hi, chrigi schrieb: > hi, > > for a webapp i need some big chunks of data which almost never > changes. because it produces for all templates the same output, it > could be evaluated during compiletime of the templates. this would > speed up the whole thing a bit i imagine. > > i could implement a cache somehow for this parts but it would need > changes to the templates and they would be getting more complex. > > is it somehow possible to mark globals as 'never changing' so they are > evaluated once at compiletime an not hundreds of times at rendertime, > producing always the same results? In very, very early Jinja2 versions we supported that. The problem is that the semantics of the templates are quite complex and produce some problems. I would suggest caching these things in memcache or something. A cache extension is in the ext folder I think.
Regards, Armin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pocoo-libs?hl=en -~----------~----~----~----~------~----~------~--~---
