+
+ /**
+ * @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);
+ }
+
+ /**
+ * Generate a unique photo ID.
+ *
+ * @return string
+ */
+ public static function newResource()
+ {
+ return system::createGUID(32, false);
+ }