About page goes from 10min to 30min (short cache to rotate the
quotes).
Search results go from 15min to 30 min.
Dynamic CSS goes from 6 hours to 48 hours, since we use cache busting
URLs everywhere these days, and on average they change very seldom.
# About page view (contains information about PostgreSQL + random quotes)
-@cache(minutes=10)
+@cache(minutes=30)
def about(request):
# get 5 random quotes
quotes = Quote.objects.filter(approved=True).order_by('?').all()[:5]
}
-@cache(hours=6)
+@cache(hours=48)
def dynamic_css(request, css):
if css not in _dynamic_cssmap:
raise Http404('CSS not found')
@csrf_exempt
-@cache(minutes=15)
+@cache(minutes=30)
def search(request):
# Perform a general web search
# Since this lives in a different database, we open a direct