1
0
Fork 0

Merge pull request #2847 from pixelfed/staging

Update PublicTimelineService
This commit is contained in:
daniel 2021-07-07 01:59:05 -06:00 committed by GitHub
commit 567a4b6b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class PublicTimelineService {
public static function add($val) public static function add($val)
{ {
if(self::count() > 400) { if(config('database.redis.client') === 'phpredis' && self::count() > 400) {
Redis::zpopmin(self::CACHE_KEY); Redis::zpopmin(self::CACHE_KEY);
} }