[Answered ]-Django-pipeline wipes out my entries in Django Database Cache

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',
}

Leave a comment