From: nupplaPhil Date: Sat, 18 Jan 2020 14:41:18 +0000 (+0100) Subject: CleanUp Cache namespace X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbc10c177f9ec3f8bda56761a7179646d2630447;p=friendica-addons.git CleanUp Cache namespace - Introduce enum "Duration" - Introduce enum "Type" - Move "Cache\Cache" to "BaseCache" --- diff --git a/openstreetmap/openstreetmap.php b/openstreetmap/openstreetmap.php index 6192b93f..5e608ed3 100644 --- a/openstreetmap/openstreetmap.php +++ b/openstreetmap/openstreetmap.php @@ -9,8 +9,8 @@ * */ +use Friendica\Core\Cache\Duration; use Friendica\DI; -use Friendica\Core\Cache\Cache; use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; @@ -137,7 +137,7 @@ function openstreetmap_get_coordinates($a, &$b) $curlResult = Network::curl($nomserver . $args); if ($curlResult->isSuccess()) { $j = json_decode($curlResult->getBody(), true); - DI::cache()->set($cachekey, $j, Cache::MONTH); + DI::cache()->set($cachekey, $j, Duration::MONTH); } }