Skip to content

Make edxmako cache properly with changing lookup paths - #8552

Merged
nedbat merged 1 commit into
masterfrom
ned/smarter-mako-caching
Jul 1, 2015
Merged

Make edxmako cache properly with changing lookup paths#8552
nedbat merged 1 commit into
masterfrom
ned/smarter-mako-caching

Conversation

@nedbat

@nedbat nedbat commented Jun 17, 2015

Copy link
Copy Markdown
Contributor

For theming (in a separate, larger branch), we need to be able to change the lookup directories dynamically (for testing now, for multi-tenancy later). When that happens, the mapping from uri ("footer.html") to actual file can change, which is the whole point of changing the lookup directories.

To make it work properly, we have to cache the files in a different directory for different lookup paths, and clear the internal caches so that the files will be examined again.

@cpennington @tusbar opinions?

@nedbat

nedbat commented Jun 17, 2015

Copy link
Copy Markdown
Contributor Author

BTW, the larger theming work: https://github.com/edx/edx-platform/pull/8271

@cpennington

Copy link
Copy Markdown
Contributor

👍

nedbat added a commit that referenced this pull request Jul 1, 2015
Make edxmako cache properly with changing lookup paths
@nedbat
nedbat merged commit 9d5b565 into master Jul 1, 2015
@nedbat
nedbat deleted the ned/smarter-mako-caching branch July 1, 2015 21:47
@tusbar

tusbar commented Jul 2, 2015

Copy link
Copy Markdown
Contributor

@nedbat sorry, I didn’t see this in all those new notifications I suddenly received!

This is good. 👍

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.

3 participants