mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:10:12 +00:00
Move Cache::get() to DI::cache()->get()
This commit is contained in:
parent
f68929633b
commit
fe078410a1
16 changed files with 20 additions and 33 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue