Review update

Rename function and add new function.
This commit is contained in:
Adam Magness 2018-01-03 22:36:15 -05:00
parent e37640c44c
commit 71534a1475
3 changed files with 20 additions and 10 deletions

View file

@ -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);
}
}