mirror of
https://github.com/friendica/friendica
synced 2025-05-12 05:04:10 +02: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
|
@ -66,7 +66,7 @@ class OEmbed
|
|||
if (DBA::isResult($oembed_record)) {
|
||||
$json_string = $oembed_record['content'];
|
||||
} else {
|
||||
$json_string = Cache::get($cache_key);
|
||||
$json_string = DI::cache()->get($cache_key);
|
||||
}
|
||||
|
||||
// These media files should now be caught in bbcode.php
|
||||
|
|
|
@ -1070,7 +1070,7 @@ class BBCode
|
|||
private static function removePictureLinksCallback($match)
|
||||
{
|
||||
$cache_key = 'remove:' . $match[1];
|
||||
$text = Cache::get($cache_key);
|
||||
$text = DI::cache()->get($cache_key);
|
||||
|
||||
if (is_null($text)) {
|
||||
$a = DI::app();
|
||||
|
@ -1143,7 +1143,7 @@ class BBCode
|
|||
}
|
||||
|
||||
$cache_key = 'clean:' . $match[1];
|
||||
$text = Cache::get($cache_key);
|
||||
$text = DI::cache()->get($cache_key);
|
||||
if (!is_null($text)) {
|
||||
return $text;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue