On Jun 20, 5:25 am, Rodrigo Moraes <[email protected]> wrote:
> On Fri, Jun 19, 2009 at 9:59 PM, Robin B wrote:
> > Did you know that Jinja2 already caches the templates in local RAM?
> > The cache will be cleared on each deployment.
>
> > In production, I pass these parameters to the template engine: dict
> > (auto_reload=False, cache_size=-1)
>
> Yes, but this doesn't work well in App Engine specifically. The memory
> cache doesn't last long as new wsgi instances are created very often,
> and then the templates are parsed constantly. As bytecode cache can't
> be used in App Engine, one solution (suggested by Armin a while ago)
> is to use precompiled templates.
>
> -- rodrigo

What about using memcache with the app version environment variable in
the key?  Or is that what you meant by "bytecode cache can't
be used in App Engine"?

Robin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to