Installation¶
Before installing and activating the LSCache plugin, deactivate all other full-page cache plugins.
Tip
You can still use other types of cache (like object cache, or browser cache), but only one full-page cache should be used at a time.
Package Installation¶
Note
Please see the Overview for the server-level requirements before attempting to install this package.
Install the lscache-django package with the pip command:
pip install lscache-django
Add lscache_django to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
...
'lscache_django',
]
Add the middleware:
MIDDLEWARE = [
...
'lscache_django.middleware.LSCacheMiddleware',
]