function views_content_cache_key::view_key in Views content cache 7.3
Same name and namespace in other branches
- 6.2 plugins/base.inc \views_content_cache_key::view_key()
An array of keys to check in this cache segment when viewing the view.
As a user views a view, we are asked for the keys that views content cache should consider in our segment. Normally we'd just return the values as set by the user from our options_form().
Parameters
$values: An array of values that was stored from our form element in options_form().
Return value
An array of keys in our cache segment.
1 method overrides views_content_cache_key::view_key()
- views_content_cache_key_og::view_key in plugins/
views_content_cache/ og.inc - An array of keys to check in this cache segment when viewing the view.
File
- plugins/
views_content_cache/ base.inc, line 65 - Provides the base Views content cache plugin.
Class
- views_content_cache_key
- Base class for the views content cache plugins.
Code
function view_key($values, &$handler) {
$values = array_filter($values);
// Find any values that are for arguments and replace with real values.
if (count($this
->view_key_from_arguments())) {
$values = $this
->view_key_replace_arguments($values, $handler);
}
return $values;
}