- Introduce enum "Duration"
- Introduce enum "Type"
- Move "Cache\Cache" to "BaseCache"
*
*/
+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;
$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);
}
}