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