public function SearchApiViewsContentCache::get_results_key in Search API 7
Overrides views_plugin_cache::get_results_key().
This is unnecessary for Views >= 3.8.
Overrides views_plugin_cache::get_results_key
2 calls to SearchApiViewsContentCache::get_results_key()
- SearchApiViewsContentCache::cache_get in contrib/
search_api_views/ includes/ plugin_content_cache.inc - Overrides views_plugin_cache::cache_get().
- SearchApiViewsContentCache::cache_set in contrib/
search_api_views/ includes/ plugin_content_cache.inc - Overrides views_plugin_cache::cache_set().
File
- contrib/
search_api_views/ includes/ plugin_content_cache.inc, line 120 - Contains the SearchApiViewsContentCache class.
Class
- SearchApiViewsContentCache
- Plugin class for caching Search API views, with additional invalidation.
Code
public function get_results_key() {
if (!isset($this->_results_key)) {
$this->_results_key = $this->view->name . ':' . $this->display->id . ':results:' . $this
->get_cache_key();
}
return $this->_results_key;
}