From bb7109ff7c885604d6d0e84f4f47a4311553fc36 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 1 Jun 2019 21:08:17 +0200 Subject: [PATCH] Re-add cache --- manuels/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuels/views.py b/manuels/views.py index 366f423..56c9b23 100644 --- a/manuels/views.py +++ b/manuels/views.py @@ -264,7 +264,7 @@ def validate_isbn(isbn): # We are able to cache the response because it's very unlikely that the details of a book will change through time -# @cache_page(7 * 24 * 60 * 60) +@cache_page(7 * 24 * 60 * 60) def isbn_api(request, isbn): isbn = isbn.strip().replace('-', '')