Skip to content

Commit

Permalink
use local memory cache for django compressor to avoid cache/fs mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
sourgrasses committed Jan 13, 2021
1 parent 4573110 commit 178074b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rooibos_settings/docker_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,15 @@
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': get_setting('/etc/opt/mdid/config/cache_backend'),
'KEY_PREFIX': INSTANCE_NAME,
},
'compressor': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'compressor',
}
}

COMPRESS_CACHE_BACKEND = "compressor"

INSTALLED_APPS += ("django_cas_ng",)

MIDDLEWARE_CLASSES += ("django_cas_ng.middleware.CASMiddleware",)
Expand Down

0 comments on commit 178074b

Please sign in to comment.