mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Move Cache::set() to DI::cache()->set()
This commit is contained in:
parent
3369dfaad9
commit
f68929633b
16 changed files with 25 additions and 39 deletions
|
@ -608,7 +608,7 @@ class Profile
|
|||
);
|
||||
if (DBA::isResult($s)) {
|
||||
$r = DBA::toArray($s);
|
||||
Cache::set($cachekey, $r, Cache::HOUR);
|
||||
DI::cache()->set($cachekey, $r, Cache::HOUR);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1070,7 +1070,7 @@ class Profile
|
|||
Logger::log('URL ' . $my_url . ' already tried to authenticate.', Logger::DEBUG);
|
||||
return;
|
||||
} else {
|
||||
Cache::set($cachekey, true, Cache::MINUTE);
|
||||
DI::cache()->set($cachekey, true, Cache::MINUTE);
|
||||
}
|
||||
|
||||
Logger::log('Not authenticated. Invoking reverse magic-auth for ' . $my_url, Logger::DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue