function context_admin_get_page_cache in Contextual Administration 7
Same name and namespace in other branches
- 6 context_admin.module \context_admin_get_page_cache()
Return a CTools cache page identified by $name if it exists, or a new one if it does not.
File
- ./
context_admin.module, line 62
Code
function context_admin_get_page_cache($name) {
ctools_include('object-cache');
$cache = ctools_object_cache_get('context_admin', $name);
if (!$cache) {
$cache = context_admin_create($name);
$cache->locked = ctools_object_cache_test('context_admin', $name);
}
return $cache;
}