Reduce cache duration from 7 days to 2 hours

This commit is contained in:
Gabriel Augendre 2019-06-08 19:32:49 +02:00
parent 26a8793a1f
commit 71b526ea9a

View file

@ -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('-', '')