function views_plugin_cache::get_results_key
Same name in other branches
- 6.x-3.x plugins/views_plugin_cache.inc \views_plugin_cache::get_results_key()
2 calls to views_plugin_cache::get_results_key()
- views_plugin_cache::cache_get in plugins/
views_plugin_cache.inc - Retrieve data from the cache.
- views_plugin_cache::cache_set in plugins/
views_plugin_cache.inc - Save data to the cache.
File
-
plugins/
views_plugin_cache.inc, line 296
Class
- views_plugin_cache
- The base plugin to handle caching.
Code
public function get_results_key() {
if (!isset($this->_results_key)) {
$key_data = array();
foreach (array(
'exposed_info',
'page',
'sort',
'order',
'items_per_page',
'offset',
) as $key) {
if (isset($_GET[$key])) {
$key_data[$key] = $_GET[$key];
}
}
$this->_results_key = $this->view->name . ':' . $this->display->id . ':results:' . $this->get_cache_key($key_data);
}
return $this->_results_key;
}