- added "cache" accessor to Template, Namespace.
e.g. ${local.cache.get('somekey')} or template.cache.invalidate_body() - the Cache object now supports invalidate_def(name), invalidate_body(), invalidate_closure(name), invalidate(key), which will remove the given key from the cache, if it exists. The cache arguments (i.e. storage type) are derived from whatever has been already persisted for that template. [ticket:92]
Showing
- CHANGES 12 additions, 0 deletionsCHANGES
- doc/build/content/caching.txt 26 additions, 3 deletionsdoc/build/content/caching.txt
- lib/mako/cache.py 39 additions, 12 deletionslib/mako/cache.py
- lib/mako/runtime.py 6 additions, 2 deletionslib/mako/runtime.py
- lib/mako/template.py 4 additions, 0 deletionslib/mako/template.py
- test/cache.py 46 additions, 0 deletionstest/cache.py
Loading
Please register or sign in to comment