1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Cache Backend
=============
Installation
------------
change settings to:
.. code-block:: py
CACHES = {
'default': {
'BACKEND': 'django_uwsgi.cache.UwsgiCache',
# and optionally, if you used a different cache name
'LOCATION': 'foobar'
}
}
django-confy
------------
if you're using `django-confy <https://github.com/MechanisM/django-confy>`_:, you can use url like:
.. code-block:: sh
CACHE_URL=uwsgi://foobar
Settings
--------
``UWSGI_CACHE_FALLBACK``
- ``False`` - raises Exception if ``uwsgi`` 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.
|