Commit 486b8b87 authored by alexpott's avatar alexpott

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

parent ee9bb516
......@@ -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;
......
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