Manages caching data structures.
Provides utility methods for invalidating various caches.
-
apps.managers.cache_mgr.cache_mgr.clear()[source]
proxy the call to django cache.clear.
-
apps.managers.cache_mgr.cache_mgr.delete(key, version=None)[source]
proxy the call to django cache.delete.
-
apps.managers.cache_mgr.cache_mgr.get_cache(key, default=None, version=None)[source]
proxy the call to django cache.get.
-
apps.managers.cache_mgr.cache_mgr.info()[source]
return the information about this cache.
-
apps.managers.cache_mgr.cache_mgr.invalidate_template_cache(fragment_name, *variables)[source]
Invalidates the cache associated with a template.
Credit: djangosnippets.org/snippets/1593/
-
apps.managers.cache_mgr.cache_mgr.set_cache(key, value, timeout=None, version=None)[source]
proxy the call to django cache.set.