From 71b526ea9a59b912d52397c95398bb648665af03 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 8 Jun 2019 19:32:49 +0200 Subject: [PATCH] Reduce cache duration from 7 days to 2 hours --- manuels/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuels/views.py b/manuels/views.py index 33052c2..4e9cd9e 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(2 * 60 * 60) def isbn_api(request, isbn): isbn = isbn.strip().replace('-', '')