Commit fc827a81 authored by alexpott's avatar alexpott
Browse files

Issue #2002408 by fmizzell: Rename Views method cache_get() to cacheGet().

parent f8b6ec88
......@@ -142,7 +142,7 @@ public function cacheSet($type) {
*
* A plugin should override this to provide specialized caching behavior.
*/
function cache_get($type) {
public function cacheGet($type) {
$cutoff = $this->cacheExpire($type);
switch ($type) {
case 'query':
......
......@@ -31,11 +31,11 @@ public function summaryTitle() {
/**
* Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cache_get().
* Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cacheGet().
*
* Replace the cache get logic so it does not return a cache item at all.
*/
function cache_get($type) {
public function cacheGet($type) {
return FALSE;
}
......
......@@ -1178,7 +1178,8 @@ public function execute($display_id = NULL) {
else {
$cache = $this->display_handler->getPlugin('cache');
}
if ($cache->cache_get('results')) {
if ($cache->cacheGet('results')) {
if ($this->pager->usePager()) {
$this->pager->total_items = $this->total_rows;
$this->pager->updatePageInfo();
......@@ -1238,7 +1239,7 @@ public function render($display_id = NULL) {
$cache = $this->display_handler->getPlugin('cache');
}
if ($cache && $cache->cache_get('output')) {
if ($cache && $cache->cacheGet('output')) {
}
else {
if ($cache) {
......
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