fluent_contents.cache¶
Functions for caching.
-
fluent_contents.cache.get_placeholder_cache_key(placeholder, language_code)¶ Return a cache key for an existing placeholder object.
This key is used to cache the entire output of a placeholder.
-
fluent_contents.cache.get_placeholder_cache_key_for_parent(parent_object, placeholder_name, language_code)¶ Return a cache key for a placeholder.
This key is used to cache the entire output of a placeholder.
-
fluent_contents.cache.get_rendering_cache_key(placeholder_name, contentitem)¶ Return a cache key for the content item output.
See also
The
ContentItem.clear_cache()function can be used to remove the cache keys of a retrieved object.