Move Cache::get() to DI::cache()->get()
This commit is contained in:
@@ -586,7 +586,7 @@ class Profile
|
||||
$bd_short = L10n::t('F d');
|
||||
|
||||
$cachekey = 'get_birthdays:' . local_user();
|
||||
$r = Cache::get($cachekey);
|
||||
$r = DI::cache()->get($cachekey);
|
||||
if (is_null($r)) {
|
||||
$s = DBA::p(
|
||||
"SELECT `event`.*, `event`.`id` AS `eid`, `contact`.* FROM `event`
|
||||
@@ -1066,7 +1066,7 @@ class Profile
|
||||
|
||||
// Avoid endless loops
|
||||
$cachekey = 'zrlInit:' . $my_url;
|
||||
if (Cache::get($cachekey)) {
|
||||
if (DI::cache()->get($cachekey)) {
|
||||
Logger::log('URL ' . $my_url . ' already tried to authenticate.', Logger::DEBUG);
|
||||
return;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user