Move Cache::get() to DI::cache()->get()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user