mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Review update
Rename function and add new function.
This commit is contained in:
parent
e37640c44c
commit
71534a1475
3 changed files with 20 additions and 10 deletions
|
@ -220,7 +220,7 @@ class Photo
|
|||
*
|
||||
* @return array Returns array of the photo albums
|
||||
*/
|
||||
public static function photoAlbums($uid, $update = false)
|
||||
public static function getAlbums($uid, $update = false)
|
||||
{
|
||||
$sql_extra = permissions_sql($uid);
|
||||
|
||||
|
@ -252,4 +252,14 @@ class Photo
|
|||
}
|
||||
return $albums;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $uid User id of the photos
|
||||
* @return void
|
||||
*/
|
||||
public static function clearAlbumCache($uid)
|
||||
{
|
||||
$key = "photo_albums:".$uid.":".local_user().":".remote_user();
|
||||
Cache::set($key, null, CACHE_DAY);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue