CleanUp Cache namespace

- Introduce enum "Duration"
- Introduce enum "Type"
- Move "Cache\Cache" to "BaseCache"
pull/944/head
nupplaPhil 2020-01-18 15:41:18 +01:00
parent bc62d7ad0f
commit fbc10c177f
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}