mirror of
https://github.com/friendica/friendica
synced 2025-05-09 20:24:10 +02: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
|
@ -3272,7 +3272,7 @@ class Diaspora
|
|||
Logger::log("Send participation for ".$item["guid"]." by ".$author, Logger::DEBUG);
|
||||
|
||||
// It doesn't matter what we store, we only want to avoid sending repeated notifications for the same item
|
||||
Cache::set($cachekey, $item["guid"], Cache::QUARTER_HOUR);
|
||||
DI::cache()->set($cachekey, $item["guid"], Cache::QUARTER_HOUR);
|
||||
|
||||
return self::buildAndTransmit($owner, $contact, "participation", $message);
|
||||
}
|
||||
|
@ -3628,7 +3628,7 @@ class Diaspora
|
|||
|
||||
$msg = ["type" => $type, "message" => $message];
|
||||
|
||||
Cache::set($cachekey, $msg, Cache::QUARTER_HOUR);
|
||||
DI::cache()->set($cachekey, $msg, Cache::QUARTER_HOUR);
|
||||
|
||||
return $msg;
|
||||
}
|
||||
|
@ -3798,7 +3798,7 @@ class Diaspora
|
|||
$comment['thread_parent_guid'] = $thread_parent_item['guid'];
|
||||
}
|
||||
|
||||
Cache::set($cachekey, $comment, Cache::QUARTER_HOUR);
|
||||
DI::cache()->set($cachekey, $comment, Cache::QUARTER_HOUR);
|
||||
|
||||
return($comment);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue