2👍
✅
Defining a separate cache for static files will fix the issue. Django by default looks for “staticfiles” cache first.
example:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'django_dbcache',
},
'staticfiles': {
'BACKEND': "django.core.cache.backends.locmem.LocMemCache",
'LOCATION': 'static-files',
}
Source:stackexchange.com