diff gpp/forums/feeds.py @ 385:2a03c69792d8

For #187; tune forums RSS settings. Set TTL to 1 hour; return 30 forum posts instead of 10; cache feed for 15 minutes instead of an hour.
author Brian Neal <bgneal@gmail.com>
date Wed, 16 Mar 2011 02:13:38 +0000
parents 9b63ad1f2ad2
children b15726767ab8
line wrap: on
line diff
--- a/gpp/forums/feeds.py	Wed Mar 16 01:49:10 2011 +0000
+++ b/gpp/forums/feeds.py	Wed Mar 16 02:13:38 2011 +0000
@@ -12,7 +12,7 @@
 class ForumsFeed(Feed):
     """The Feed class for a specific forum"""
 
-    ttl = '720'
+    ttl = '60'
     author_name = 'Brian Neal'
     author_email = 'admin@surfguitar101.com'
 
@@ -59,7 +59,7 @@
                     topic__forum__in=Forum.objects.public_forums())
         else:
             items = Post.objects.filter(topic__forum__id=obj.id)
-        return items.order_by('-creation_date').select_related()[:10]
+        return items.order_by('-creation_date').select_related()[:30]
 
     def item_title(self, item):
         return item.topic.name