Commit a17c65c0 authored by alexpott's avatar alexpott

Issue #2002410 by nathangervais, davmorr: Rename Views method cache_set() to cacheSet().

parent dd4f4418
......@@ -115,7 +115,7 @@ function cache_set_expire($type) {
*
* A plugin should override this to provide specialized caching behavior.
*/
function cache_set($type) {
public function cacheSet($type) {
switch ($type) {
case 'query':
// Not supported currently, but this is certainly where we'd put it.
......
......@@ -40,11 +40,11 @@ function cache_get($type) {
}
/**
* Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cache_set().
* {@inheritdoc}
*
* Replace the cache set logic so it does set a cache item at all.
* Replace the cache set logic so it does not set a cache item at all.
*/
function cache_set($type) {
public function cacheSet($type) {
}
}
......@@ -1190,7 +1190,7 @@ public function execute($display_id = NULL) {
// views_plugin_query::execute().
$this->result = array_values($this->result);
$this->_postExecute();
$cache->cache_set('results');
$cache->cacheSet('results');
}
// Let modules modify the view just after executing it.
......@@ -1294,7 +1294,7 @@ public function render($display_id = NULL) {
$this->display_handler->output = $this->display_handler->render();
if ($cache) {
$cache->cache_set('output');
$cache->cacheSet('output');
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment