Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'feed-parsing' into dev

  • Loading branch information...
commit 9622eca12345869fa07969b6244ce2307161fc76 2 parents 53fb26d + ed2fd18
@jlongster jlongster authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 apps/mozorg/cron.py
View
4 apps/mozorg/cron.py
@@ -7,4 +7,6 @@
def update_feeds():
for name, url in settings.FEEDS.items():
feed_info = feedparser.parse(url)
- cache.set('feeds-%s' % name, feed_info)
+ # Cache for a year (it will be set by the cron job no matter
+ # what on a set interval)
+ cache.set('feeds-%s' % name, feed_info, 60*60*24*365)
Please sign in to comment.
Something went wrong with that request. Please try again.