Toning down updates on infrequently updated feeds.

This commit is contained in:
Samuel Clay 2011-11-07 12:57:06 -08:00
parent 936774b654
commit 636e47728f
2 changed files with 4 additions and 2 deletions

View file

@ -905,8 +905,8 @@ class Feed(models.Model):
# 2 subscribers:
# 1 update per day = 1 hours
# 10 updates = 20 minutes
updates_per_day_delay = 12 * 60 / max(.25, ((max(0, self.active_subscribers)**.35)
* (updates_per_month**1.2)))
updates_per_day_delay = 12 * 60 / max(.25, ((max(0, self.active_subscribers)**.2)
* (updates_per_month**0.25)))
if self.premium_subscribers > 0:
updates_per_day_delay /= min(self.active_subscribers+self.premium_subscribers, 5)
# Lots of subscribers = lots of updates

View file

@ -6,6 +6,8 @@ export ZSH=$HOME/.oh-my-zsh
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="risto"
export DISABLE_AUTO_UPDATE="true"
# Set to this to use case-sensitive completion
export CASE_SENSITIVE="true"
export LC_COLLATE='C'