Cache checking if books are on shelve in shelve button snippet
This commit is contained in:
parent
a09c813f73
commit
8bbc4d3301
6 changed files with 36 additions and 10 deletions
|
@ -46,9 +46,7 @@ class ReadingStatus(View):
|
|||
return HttpResponseBadRequest()
|
||||
|
||||
# invalidate related caches
|
||||
cache.delete(
|
||||
f"active_shelf-{request.user.id}-{book_id}",
|
||||
)
|
||||
cache.delete(f"active_shelf-{request.user.id}-{book_id}")
|
||||
|
||||
desired_shelf = get_object_or_404(
|
||||
models.Shelf, identifier=identifier, user=request.user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue