Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #2166 #2188

Merged
merged 2 commits into from Dec 20, 2015
Merged

fix #2166 #2188

merged 2 commits into from Dec 20, 2015

Conversation

ralsina
Copy link
Member

@ralsina ralsina commented Dec 18, 2015

Use a FS cache for jinja bytecode like we do for Mako.

@@ -52,7 +52,10 @@ def __init__(self):
"""Initialize Jinja2 environment with extended set of filters."""
if jinja2 is None:
return
self.lookup = jinja2.Environment()
# Not ideal because it's not using our cache structure
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is it held then? If this is the case, couldn’t we handle this in create_lookup or set_site?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the jinja docs "system temp folder". It looks like it needs to be set on env creation. Maybe we can delay that until set_site?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll see if I can fix this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done I think.

@Kwpolska
Copy link
Member

Merge if this does not break anything (test it yourself)

ralsina added a commit that referenced this pull request Dec 20, 2015
@ralsina ralsina merged commit c92f632 into master Dec 20, 2015
@ralsina ralsina deleted the add-jinja-cache branch December 20, 2015 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants