mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Merge pull request #2847 from pixelfed/staging
Update PublicTimelineService
This commit is contained in:
commit
567a4b6b04
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class PublicTimelineService {
|
|||
|
||||
public static function add($val)
|
||||
{
|
||||
if(self::count() > 400) {
|
||||
if(config('database.redis.client') === 'phpredis' && self::count() > 400) {
|
||||
Redis::zpopmin(self::CACHE_KEY);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue