You are here

public function views_plugin_cache::get_output_key in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_cache.inc \views_plugin_cache::get_output_key()
  2. 6.2 plugins/views_plugin_cache.inc \views_plugin_cache::get_output_key()
2 calls to views_plugin_cache::get_output_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 317
Definition of views_plugin_cache.

Class

views_plugin_cache
The base plugin to handle caching.

Code

public function get_output_key() {
  if (!isset($this->_output_key)) {
    $key_data = array(
      'result' => $this->view->result,
      'theme' => $GLOBALS['theme'],
    );
    $this->_output_key = $this->view->name . ':' . $this->display->id . ':output:' . $this
      ->get_cache_key($key_data);
  }
  return $this->_output_key;
}