From e67d810ecd8651ee94d458170ab95fcda832fe00 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 20 Oct 2018 18:22:13 +0200 Subject: [PATCH] Move Global Functions - Part 3 - Replaced every CACHE_ definition --- curweather/curweather.php | 2 +- openstreetmap/openstreetmap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/curweather/curweather.php b/curweather/curweather.php index c4cf3ab46..db244c7d1 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -92,7 +92,7 @@ function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cacheti ]; PConfig::set(local_user(), 'curweather', 'last', $now->getTimestamp()); - Cache::set('curweather'.md5($url), serialize($r), CACHE_HOUR); + Cache::set('curweather'.md5($url), serialize($r), Cache::HOUR); return $r; } diff --git a/openstreetmap/openstreetmap.php b/openstreetmap/openstreetmap.php index 0420591eb..a1cdd3a1b 100644 --- a/openstreetmap/openstreetmap.php +++ b/openstreetmap/openstreetmap.php @@ -132,7 +132,7 @@ function openstreetmap_get_coordinates($a, &$b) $curlResult = Network::curl($nomserver . $args); if ($curlResult->isSuccess()) { $j = json_decode($curlResult->getBody(), true); - Cache::set($cachekey, $j, CACHE_MONTH); + Cache::set($cachekey, $j, Cache::MONTH); } }