mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 21:52:21 +01:00
Add caching for song searching
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from django.core.cache import cache
|
||||
from django.core.cache import caches
|
||||
from django.shortcuts import render
|
||||
|
||||
|
||||
def stats(request):
|
||||
stats = cache.get('stats')
|
||||
stats = caches['default'].get('stats')
|
||||
status = 503
|
||||
current_age = None
|
||||
current_age_text = None
|
||||
|
||||
Reference in New Issue
Block a user