Move Cache::get() to DI::cache()->get()

This commit is contained in:
nupplaPhil
2020-01-07 00:45:49 +01:00
parent f68929633b
commit fe078410a1
16 changed files with 20 additions and 33 deletions

View File

@@ -546,7 +546,7 @@ class Photo
$sql_extra = Security::getPermissionsSQLByUserId($uid);
$key = "photo_albums:".$uid.":".local_user().":".remote_user();
$albums = Cache::get($key);
$albums = DI::cache()->get($key);
if (is_null($albums) || $update) {
if (!Config::get("system", "no_count", false)) {
/// @todo This query needs to be renewed. It is really slow