4.2.1.2. Package apps.managers.cache_mgr
¶
Manages caching data structures.
4.2.1.2.1. Module apps.managers.cache_mgr.cache_mgr
¶
Provides utility methods for invalidating various caches.
-
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.
invalidate_template_cache
(fragment_name, *variables)[source]¶ Invalidates the cache associated with a template. Credit: djangosnippets.org/snippets/1593/