Révision 7547bb19
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/views/plugins/views_plugin_cache.inc | ||
---|---|---|
289 | 289 |
|
290 | 290 |
function get_results_key() { |
291 | 291 |
if (!isset($this->_results_key)) { |
292 |
$this->_results_key = $this->view->name . ':' . $this->display->id . ':results:' . $this->get_cache_key(); |
|
292 |
$key_data = array(); |
|
293 |
foreach (array('exposed_info', 'page', 'sort', 'order', 'items_per_page', 'offset') as $key) { |
|
294 |
if (isset($_GET[$key])) { |
|
295 |
$key_data[$key] = $_GET[$key]; |
|
296 |
} |
|
297 |
} |
|
298 |
|
|
299 |
$this->_results_key = $this->view->name . ':' . $this->display->id . ':results:' . $this->get_cache_key($key_data); |
|
293 | 300 |
} |
294 | 301 |
|
295 | 302 |
return $this->_results_key; |
... | ... | |
298 | 305 |
function get_output_key() { |
299 | 306 |
if (!isset($this->_output_key)) { |
300 | 307 |
$key_data = array( |
308 |
'result' => $this->view->result, |
|
301 | 309 |
'theme' => $GLOBALS['theme'], |
302 | 310 |
); |
303 | 311 |
$this->_output_key = $this->view->name . ':' . $this->display->id . ':output:' . $this->get_cache_key($key_data); |
Formats disponibles : Unified diff
Weekly update of contrib modules