diff --git a/plugins/views_plugin_cache.inc b/plugins/views_plugin_cache.inc index 1b17c07..cd5a544 100644 --- a/plugins/views_plugin_cache.inc +++ b/plugins/views_plugin_cache.inc @@ -247,6 +247,7 @@ return; // @TODO: fixme if (!isset($this->_results_key)) { $build_info = $this->view->build_info; + $exposed_input = (isset($this->view->exposed_input)) ? $this->view->exposed_input : null; foreach (array('query', 'count_query') as $index) { $query = clone $build_info[$index]; @@ -258,6 +259,8 @@ return; // @TODO: fixme 'roles' => array_keys($user->roles), 'super-user' => $user->uid == 1, // special caching for super user. 'language' => $GLOBALS['language'], + 'exposed_input' => $exposed_input, + 'argument' => $this->view->argument, ); foreach (array('exposed_info', 'page', 'sort', 'order') as $key) { if (isset($_GET[$key])) { @@ -274,12 +277,17 @@ return; // @TODO: fixme function get_output_key() { global $user; if (!isset($this->_output_key)) { + + $exposed_input = (isset($this->view->exposed_input)) ? $this->view->exposed_input : null; + $key_data = array( 'result' => $this->view->result, 'roles' => array_keys($user->roles), 'super-user' => $user->uid == 1, // special caching for super user. 'theme' => $GLOBALS['theme'], 'language' => $GLOBALS['language'], + 'exposed_input' => $exposed_input, + 'argument' => $this->view->argument, ); $this->_output_key = $this->view->name . ':' . $this->display->id . ':output:' . md5(serialize($key_data));