From: Hypolite Petovan Date: Sun, 12 Jan 2020 14:36:43 +0000 (-0500) Subject: [openstreetmap] Fix references to Cache X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d0a63610bd7ec106d5d4e64deb7f3b1fdce19709;p=friendica-addons.git [openstreetmap] Fix references to Cache --- diff --git a/openstreetmap/openstreetmap.php b/openstreetmap/openstreetmap.php index c2c0a7c9..6192b93f 100644 --- a/openstreetmap/openstreetmap.php +++ b/openstreetmap/openstreetmap.php @@ -10,7 +10,7 @@ */ use Friendica\DI; -use Friendica\Core\Cache; +use Friendica\Core\Cache\Cache; use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; @@ -131,13 +131,13 @@ function openstreetmap_get_coordinates($a, &$b) $args = '?q=' . urlencode($b['location']) . '&format=json'; $cachekey = "openstreetmap:" . $b['location']; - $j = Cache::get($cachekey); + $j = DI::cache()->get($cachekey); if (is_null($j)) { $curlResult = Network::curl($nomserver . $args); if ($curlResult->isSuccess()) { $j = json_decode($curlResult->getBody(), true); - Cache::set($cachekey, $j, Cache::MONTH); + DI::cache()->set($cachekey, $j, Cache::MONTH); } }