Improving documentation (#455)

This commit is contained in:
Alessio Ferri 2018-02-02 10:26:51 +01:00 committed by Johannes Hoppe
parent 90fbf7422f
commit 426cace3a3

View file

@ -23,8 +23,11 @@ class Select2Conf(AppConf):
}
},
'select2': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/2",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
}
@ -34,6 +37,11 @@ class Select2Conf(AppConf):
.. tip:: To ensure a consistent state across all you machines you need to user
a consistent external cache backend like Memcached, Redis or a database.
.. note::
Should you have copied the example configuration please make sure you
have Redis setup. It's recommended to run a separate Redis server in a
production environment.
.. note:: The timeout of select2's caching backend determines
how long a browser session can last.
Once widget is dropped from the cache the json response view will return a 404.