Skip to content
This repository
Browse code

Toning down updates on infrequently updated feeds.

  • Loading branch information...
commit 636e47728f596ce05e3be437241f61a6a88a0f97 1 parent 936774b
Samuel Clay authored November 07, 2011
4  apps/rss_feeds/models.py
@@ -905,8 +905,8 @@ def get_next_scheduled_update(self, force=False):
905 905
         # 2 subscribers:
906 906
         #   1 update per day = 1 hours
907 907
         #   10 updates = 20 minutes
908  
-        updates_per_day_delay = 12 * 60 / max(.25, ((max(0, self.active_subscribers)**.35)
909  
-                                                    * (updates_per_month**1.2)))
  908
+        updates_per_day_delay = 12 * 60 / max(.25, ((max(0, self.active_subscribers)**.2)
  909
+                                                    * (updates_per_month**0.25)))
910 910
         if self.premium_subscribers > 0:
911 911
             updates_per_day_delay /= min(self.active_subscribers+self.premium_subscribers, 5)
912 912
         # Lots of subscribers = lots of updates
2  config/zshrc
@@ -6,6 +6,8 @@ export ZSH=$HOME/.oh-my-zsh
6 6
 # Look in ~/.oh-my-zsh/themes/
7 7
 export ZSH_THEME="risto"
8 8
 
  9
+export DISABLE_AUTO_UPDATE="true"
  10
+
9 11
 # Set to this to use case-sensitive completion
10 12
 export CASE_SENSITIVE="true"
11 13
 export LC_COLLATE='C'

0 notes on commit 636e477

Please sign in to comment.
Something went wrong with that request. Please try again.