mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 18:23:15 +00:00
Merge pull request #944 from nupplaphil/task/cleanup_cache
CleanUp Cache namespace
This commit is contained in:
commit
43d2e0c38a
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
use Friendica\Core\Cache\Cache;
|
use Friendica\Core\Cache\Duration;
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
|
@ -137,7 +137,7 @@ function openstreetmap_get_coordinates($a, &$b)
|
||||||
$curlResult = Network::curl($nomserver . $args);
|
$curlResult = Network::curl($nomserver . $args);
|
||||||
if ($curlResult->isSuccess()) {
|
if ($curlResult->isSuccess()) {
|
||||||
$j = json_decode($curlResult->getBody(), true);
|
$j = json_decode($curlResult->getBody(), true);
|
||||||
DI::cache()->set($cachekey, $j, Cache::MONTH);
|
DI::cache()->set($cachekey, $j, Duration::MONTH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue