Increase the freshness threshold for popular feeds
This commit is contained in:
@@ -180,7 +180,7 @@ class Article(models.Model):
|
||||
return self.created_at > now - timedelta(days=1)
|
||||
elif frequency >= 100:
|
||||
# extra high frequency — mark newest posts
|
||||
return self.created_at > now - timedelta(hours=2)
|
||||
return self.created_at > now - timedelta(hours=3)
|
||||
|
||||
# normal frequency - mark 6-hour old posts
|
||||
return self.created_at > now - timedelta(hours=6)
|
||||
|
||||
Reference in New Issue
Block a user