Cache Backend¶
Installation¶
change settings to:
CACHES = {
'default': {
'BACKEND': 'django_uwsgi.cache.UwsgiCache',
# and optionally, if you used a different cache name
'LOCATION': 'foobar'
}
}
Settings¶
UWSGI_CACHE_FALLBACK
False
- raises Exception ifuwsgi
cannot be imported.True
(default) - if uwsgi is not importable this cache backend will alias to LocMemCache. Note that south or other management commands might try to load the cache backend so this is why it’s the default.