Update FollowerService, reduce localFollowerIds ttl

This commit is contained in:
Daniel Supernault 2023-11-12 16:36:02 -07:00
parent df1f98d5f7
commit de2b5ba4e9
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class FollowerService
public static function localFollowerIds($pid, $limit = 0)
{
$key = self::FOLLOWERS_LOCAL_KEY . $pid;
$res = Cache::remember($key, 86400, function() use($pid) {
$res = Cache::remember($key, 7200, function() use($pid) {
return DB::table('followers')->whereFollowingId($pid)->whereLocalProfile(true)->pluck('profile_id')->sort();
});
return $limit ?