Skip to content
This repository has been archived by the owner on Dec 7, 2017. It is now read-only.

Cache jinja2 bytecode on memcache #16

Closed
ergoithz opened this issue May 22, 2015 · 2 comments
Closed

Cache jinja2 bytecode on memcache #16

ergoithz opened this issue May 22, 2015 · 2 comments

Comments

@ergoithz
Copy link

A custom jinja2.BytecodeCache class (see http://jinja.pocoo.org/docs/dev/api/#bytecode-cache) can be set on (http://jinja.pocoo.org/docs/dev/api/#jinja2.Environment) available at flask.app's jinja_env attribute, providing dynamic jinja2 bytecode cache without filesystem.

@waprin
Copy link
Contributor

waprin commented Jun 2, 2016

Thanks for the suggestion, it does seem like a good feature, but this repo is supposed to be a minimal example, so I would vote against adding too much random stuff. There are more fleshed out skeletons out there like here. If @jonparrott likes the idea I am not against it, but closing for now.

@waprin waprin closed this as completed Jun 2, 2016
@theacodes
Copy link
Contributor

I'd rather us not do that. It's actually better to do precompiled templates or enable the in-memory cache than to store them in memcache.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants