diff --git a/docs/configuration/cache.rst b/docs/configuration/cache.rst new file mode 100644 index 0000000000..5ebcff0cfc --- /dev/null +++ b/docs/configuration/cache.rst @@ -0,0 +1,20 @@ +Cache +----- + +RDMO uses a cache for some of it's pages. In the development setup, this is done using local-memory caching. In production, we suggest using `memcached `_. In order to do this you need to install python-memcached: + +.. code:: bash + + pip install -r requirements/memcached.txt + +and add the following to your ``rdmo/settings/local.py``: + +.. code:: python + + CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', + 'LOCATION': '127.0.0.1:11211', + 'KEY_PREFIX': 'rdmo' + } + } diff --git a/docs/configuration/index.rst b/docs/configuration/index.rst index 8a6ae38a21..2c17783e15 100644 --- a/docs/configuration/index.rst +++ b/docs/configuration/index.rst @@ -10,7 +10,7 @@ As part of the installation ``rdmo/settings/local.py`` should be creted from the While technically the local settings file ``rdmo/settings/local.py`` can be used to override all of the settings in ``rdmo/settings/sample.local.py``, it should be used to customize the settings already available in ``rdmo/settings/sample.local.py``. -This comprises :doc:`general settings `, :doc:`database connections `, how to send :doc:`emails `, the different :doc:`authentication methods `, and the usage of :doc:`themes `. +This comprises :doc:`general settings `, :doc:`database connections `, how to send :doc:`emails `, the different :doc:`authentication methods `, the usage of :doc:`themes `, and :doc:`caches `. .. toctree:: :maxdepth: 2 @@ -20,3 +20,4 @@ This comprises :doc:`general settings `, :doc:`database connections