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
|
@ -197,7 +197,7 @@ function ping_init(App $a)
|
|||
}
|
||||
|
||||
$cachekey = "ping_init:".local_user();
|
||||
$ev = Cache::get($cachekey);
|
||||
$ev = DI::cache()->get($cachekey);
|
||||
if (is_null($ev)) {
|
||||
$ev = q(
|
||||
"SELECT type, start, adjust FROM `event`
|
||||
|
|
|
@ -256,7 +256,7 @@ function poco_init(App $a) {
|
|||
if (isset($contact['account-type'])) {
|
||||
$contact['contact-type'] = $contact['account-type'];
|
||||
}
|
||||
$about = Cache::get("about:" . $contact['updated'] . ":" . $contact['nurl']);
|
||||
$about = DI::cache()->get("about:" . $contact['updated'] . ":" . $contact['nurl']);
|
||||
if (is_null($about)) {
|
||||
$about = BBCode::convert($contact['about'], false);
|
||||
DI::cache()->set("about:" . $contact['updated'] . ":" . $contact['nurl'], $about);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue