Issue #2002408 by fmizzell: Rename Views method cache_get() to cacheGet().
parent
f8b6ec887f
commit
fc827a81fa
|
@ -142,7 +142,7 @@ abstract class CachePluginBase extends PluginBase {
|
|||
*
|
||||
* 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 @@ class None extends CachePluginBase {
|
|||
|
||||
|
||||
/**
|
||||
* 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 @@ class ViewExecutable {
|
|||
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 @@ class ViewExecutable {
|
|||
$cache = $this->display_handler->getPlugin('cache');
|
||||
}
|
||||
|
||||
if ($cache && $cache->cache_get('output')) {
|
||||
if ($cache && $cache->cacheGet('output')) {
|
||||
}
|
||||
else {
|
||||
if ($cache) {
|
||||
|
|
Loading…
Reference in New Issue