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

This commit is contained in:
nupplaPhil
2020-01-07 00:41:20 +01:00
parent 3369dfaad9
commit f68929633b
16 changed files with 25 additions and 39 deletions

View File

@@ -569,7 +569,7 @@ class Photo
DBA::escape(L10n::t("Contact Photos"))
);
}
Cache::set($key, $albums, Cache::DAY);
DI::cache()->set($key, $albums, Cache::DAY);
}
return $albums;
}
@@ -582,7 +582,7 @@ class Photo
public static function clearAlbumCache($uid)
{
$key = "photo_albums:".$uid.":".local_user().":".remote_user();
Cache::set($key, null, Cache::DAY);
DI::cache()->set($key, null, Cache::DAY);
}
/**