File tree 1 file changed +2
-0
lines changed
readthedocs/projects/views
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 15
15
from django .http import HttpResponse , HttpResponseRedirect , Http404
16
16
from django .shortcuts import get_object_or_404 , render_to_response
17
17
from django .template import RequestContext
18
+ from django .views .decorators .cache import cache_control
18
19
from django .views .generic import ListView , DetailView
19
20
from django .utils .datastructures import SortedDict
20
21
from django .views .decorators .cache import cache_page
@@ -120,6 +121,7 @@ def _badge_return(redirect, url):
120
121
121
122
# TODO remove this, it's a temporary fix to heavy database usage
122
123
@cache_page (60 * 30 )
124
+ @cache_control (no_cache = True )
123
125
def project_badge (request , project_slug , redirect = True ):
124
126
"""Return a sweet badge for the project"""
125
127
version_slug = request .GET .get ('version' , LATEST )
You can’t perform that action at this time.
0 commit comments