Skip to content
Snippets Groups Projects
Commit 486b8b87 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2002396 by brennanmh, nathangervais: Rename Views method cache_expire() to cacheExpire().

parent ee9bb516
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -94,7 +94,7 @@ public function summaryTitle() {
* @param $type
* The cache type, either 'query', 'result' or 'output'.
*/
function cache_expire($type) { }
protected function cacheExpire($type) { }
/**
* Determine expiration time in the cache table of the cache type
......@@ -143,7 +143,7 @@ public function cacheSet($type) {
* A plugin should override this to provide specialized caching behavior.
*/
function cache_get($type) {
$cutoff = $this->cache_expire($type);
$cutoff = $this->cacheExpire($type);
switch ($type) {
case 'query':
// Not supported currently, but this is certainly where we'd put it.
......
......@@ -107,7 +107,7 @@ protected function getLifespan($type) {
return $lifespan;
}
function cache_expire($type) {
protected function cacheExpire($type) {
$lifespan = $this->getLifespan($type);
if ($lifespan) {
$cutoff = REQUEST_TIME - $lifespan;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment