<<

FUNCTIONS

generate_cache_key($name, $context_ref)

Generate a key to use for caching, that depends on the content of the $context_ref object. The key is prepended by the name of the variable we want to store, so that we can set multiple variables for the same context (e.g. a count of search results + the search results themselves)

Arguments

$name Name of the variable we want to cache.

$object_ref Reference to all the context / parameters etc. that have an influence on what we want to cache

Return values

MD5 of the key.

<<