Skip to content

Commit

Permalink
I think the cache is breaking things.
Browse files Browse the repository at this point in the history
  • Loading branch information
domino14 committed Jan 22, 2018
1 parent 779ccf4 commit 225e97c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions djAerolith/wordwalls/stats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from django.contrib.auth.decorators import login_required
from django.db.models import Case, When, Count, IntegerField
from django.shortcuts import render
from django.views.decorators.cache import cache_page

from base.models import Lexicon
from lib.response import response
Expand Down Expand Up @@ -69,11 +68,9 @@ def get_stats(request, lexicon, type_of_challenge_id):

@login_required
def leaderboard(request):

return render(request, 'wordwalls/leaderboard.html')


@cache_page(60*60) # This can be cached for an hour since it's faster now.
@login_required
def get_medals(request):
users_medals_totals = []
Expand Down

0 comments on commit 225e97c

Please sign in to comment.