Skip to content

Commit

Permalink
caching to 1 minute
Browse files Browse the repository at this point in the history
  • Loading branch information
daangeijs committed Sep 15, 2023
1 parent 0d8617c commit 8e14d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ def get_slide(path):
except Exception as e:
raise Http404(str(e))

@cache_page(60 * 15)
@cache_page(60)
def index(request):
root_dir = _Directory(settings.SLIDE_DIR)
return render(request, 'catalog.html', {'root_dir': root_dir})

@cache_page(60 * 15)
@cache_page(60)
def slide(request, path):
slide_obj = get_slide(path)
# Assuming you have a URL pattern named 'dzi' for the next view
Expand Down

0 comments on commit 8e14d08

Please sign in to comment.