function panels_simple_cache_get_cache in Panels 6.3
Same name and namespace in other branches
- 5.2 panels_simple_cache/panels_simple_cache.module \panels_simple_cache_get_cache()
- 6.2 panels_simple_cache/panels_simple_cache.module \panels_simple_cache_get_cache()
- 7.3 plugins/cache/simple.inc \panels_simple_cache_get_cache()
Get cached content.
1 string reference to 'panels_simple_cache_get_cache'
- simple.inc in plugins/
cache/ simple.inc - Provides a simple time-based caching option for panel panes.
File
- plugins/
cache/ simple.inc, line 26 - Provides a simple time-based caching option for panel panes.
Code
function panels_simple_cache_get_cache($conf, $display, $args, $contexts, $pane = NULL) {
$cid = panels_simple_cache_get_id($conf, $display, $args, $contexts, $pane);
$cache = cache_get($cid, 'cache_panels');
if (!$cache) {
return FALSE;
}
if (time() - $cache->created > $conf['lifetime']) {
return FALSE;
}
return $cache->data;
}