Hi, I got some errors while using cache in the URL. Could not find out what is the problem is-
from django.urls import path, re_path
from blog.views import PostCreateView, PostUpdateView, PostDeleteView
from . import views
urlpatterns = [
path('', cache_page(60 * 15)PostListView.as_view(), name='blog-home'),
]
And in settings.py-
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '/dev/shm',
'TIMEOUT': 60,
'OPTIONS': {
'MAX_ENTRIES': 1000
}
}
}