Supported Cache Backends¶
Built-in Django cache backends¶
django.core.cache.backends.memcached.MemcachedCache) - untested, but should be working.
django.core.cache.backends.db.DatabaseCache) - tested, working.
django.core.cache.backends.filebased.FileBasedCache) - tested, working.
Local memory (
django.core.cache.backends.locmem.LocMemCache) - tested, working. But not ideal for production (see Django docs for reasons why).
Wagtail Cache may or may not work correctly with 3rd party backends. If you experience an issue, please report it on our GitHub page.
Wagtail Cache provides a compatibility backend to support
django-redis. Install as follows:
Install wagtail-cache following the installation guide.
Install django-redis and define a Redis cache in your settings.py.
wagtailcache.compat_backends.django_redis.RedisCachein your cache definition.
If you are currently using Redis or have other code that uses a Redis cache, It is advised to use separate cache definitions for wagtail-cache and your other uses.