Skip to content

Commit fcd825d

Browse files
authored
Clarify that cache is not strictly necessary (#16)
1 parent 038026c commit fcd825d

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

docs/index.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,21 @@ Add ``django_select`` to your URL root configuration:
2121
# … other patterns
2222
]
2323
24-
Finally make sure you have a persistent cache backend setup (NOT
25-
:class:`.DummyCache` or :class:`.LocMemCache`), we will use Redis in this
26-
example. Make sure you have a Redis server up and running::
24+
25+
``django-select2`` requires a cache backend which is **persistent**
26+
across all application servers..
27+
28+
**This means that the** :class:`.DummyCache` **backend will not work!**
29+
30+
The default cache backend is :class:`.LocMemCache`, which is persistent
31+
across a single node. For projects with a single application server
32+
this will work fine, however you will run into issues when
33+
you scale up into multiple servers.
34+
35+
Below is an example setup using Redis, which is a solution that
36+
works for multi-server setups:
37+
38+
Make sure you have a Redis server up and running::
2739

2840
# Debian
2941
sudo apt-get install redis-server

0 commit comments

Comments
 (0)