From c0519d9ec0ed36afe103ff8365f7d71850ffb2fb Mon Sep 17 00:00:00 2001 From: Dale Davies Date: Fri, 24 Mar 2023 10:40:22 +0000 Subject: [PATCH] Update references to deprecated cache expiration type Cache::FILES --- jumpapp/classes/Cache.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/jumpapp/classes/Cache.php b/jumpapp/classes/Cache.php index ba0658a..31dca64 100644 --- a/jumpapp/classes/Cache.php +++ b/jumpapp/classes/Cache.php @@ -44,27 +44,27 @@ class Cache { $this->caches = [ 'searchengines' => [ 'cache' => null, - 'expirationtype' => Caching\Cache::FILES, + 'expirationtype' => Caching\Cache::Files, 'expirationparams' => $config->get('searchenginesfile') ], 'sites' => [ 'cache' => null, - 'expirationtype' => Caching\Cache::FILES, + 'expirationtype' => Caching\Cache::Files, 'expirationparams' => $config->get('sitesfile') ], 'sites/status' => [ 'cache' => null, - 'expirationtype' => Caching\Cache::EXPIRE, + 'expirationtype' => Caching\Cache::Files, 'expirationparams' => $config->get('statuscache').' minutes' ], 'tags' => [ 'cache' => null, - 'expirationtype' => Caching\Cache::FILES, + 'expirationtype' => Caching\Cache::Files, 'expirationparams' => $config->get('sitesfile') ], 'templates/sites' => [ 'cache' => null, - 'expirationtype' => Caching\Cache::FILES, + 'expirationtype' => Caching\Cache::Files, 'expirationparams' => [ __DIR__.'/../config.php', $config->get('sitesfile'), @@ -73,21 +73,21 @@ class Cache { ], 'templates/errorpage' => [ 'cache' => null, - 'expirationtype' => Caching\Cache::FILES, + 'expirationtype' => Caching\Cache::Files, 'expirationparams' => [ $config->get('templatedir').'/errorpage.mustache' ] ], 'unsplash' => [ 'cache' => null, - 'expirationtype' => Caching\Cache::FILES, + 'expirationtype' => Caching\Cache::Files, 'expirationparams' => [ __DIR__.'/../config.php', ] ], 'weatherdata' => [ 'cache' => null, - 'expirationtype' => Caching\Cache::EXPIRE, + 'expirationtype' => Caching\Cache::Files, 'expirationparams' => '5 minutes' ], ];