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
|
@ -208,7 +208,7 @@ function ping_init(App $a)
|
|||
DBA::escape(DateTimeFormat::utcNow())
|
||||
);
|
||||
if (DBA::isResult($ev)) {
|
||||
Cache::set($cachekey, $ev, Cache::HOUR);
|
||||
DI::cache()->set($cachekey, $ev, Cache::HOUR);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ use Friendica\Core\Protocol;
|
|||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Protocol\PortableContact;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Strings;
|
||||
|
@ -258,7 +259,7 @@ function poco_init(App $a) {
|
|||
$about = Cache::get("about:" . $contact['updated'] . ":" . $contact['nurl']);
|
||||
if (is_null($about)) {
|
||||
$about = BBCode::convert($contact['about'], false);
|
||||
Cache::set("about:" . $contact['updated'] . ":" . $contact['nurl'], $about);
|
||||
DI::cache()->set("about:" . $contact['updated'] . ":" . $contact['nurl'], $about);
|
||||
}
|
||||
|
||||
// Non connected persons can only see the keywords of a Diaspora account
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue