This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug 747166, fix bug 757151: Improved caching
Now using memcache for response and template loader caching. * Moved page inclusion helper from dekiwiki API stub into kuma API. * Reload (Cache-Control: max-age=0) will cause just the current page to be re-evaluated * Shift-reload (Cache-Control: no-cache) will cause the current page and all cached includes to be revalidated - eg. auto-required template libs, content included from other pages, etc. * Use memcache for response caching and template loaders, instead of process-local memory. This will allow both multiple node processes and the Django app to share common cache data and invalidation cues. * Honor Cache-Control: no-cache down at the loader cache level, so that auto-required libs and content included from other pages gets revalidated when a user shift-reloads * Separate template source loading from compilation, to make source caching easier. * Move FakeMemcached to utils.js, since it's used by more than api.js now. Also, md5 function added. * Fixes to template loading in test-macros.js broken test. * Remove local memory caching test in test-loaders.js, since that's no longer applicable.
- Loading branch information
Showing
12 changed files
with
292 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.