Commit da93d616 authored by impfundev's avatar impfundev

fix: book dashboard cache

parent 9bae7a9f
......@@ -4,12 +4,11 @@ from django.views.decorators.cache import cache_page
from django.conf import settings
urlpatterns = [
# path(
# "",
# cache_page(settings.CACHE_TTL, key_prefix="books")(index),
# name="book_list",
# ),
path("", index, name="book_list"),
path(
"",
cache_page(settings.CACHE_TTL, key_prefix="books")(index),
name="book_list",
),
path("<int:id>/update/", update, name="book_update"),
path("<int:id>/delete/", delete, name="book_delete"),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment