]> git.0d.be Git - panikweb.git/commitdiff
chat: don't use a long cache for the chat pages
authorFrédéric Péters <fpeters@0d.be>
Thu, 20 Apr 2017 08:09:57 +0000 (10:09 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 20 Apr 2017 08:09:57 +0000 (10:09 +0200)
panikweb/views.py

index 559bd5c35fd6e320d246e4623273de748ab6302a..dfd40f947a3b029d007da224f04416074c795282 100644 (file)
@@ -764,4 +764,4 @@ class Chat(DetailView, EmissionMixin):
     model = Emission
     template_name = 'chat.html'
 
-chat = Chat.as_view()
+chat = cache_control(max_age=15)(Chat.as_view())