Merge branch 'docs' into 'master'

Tuning Docs - Redis Compression

See merge request allianceauth/allianceauth!1475
This commit is contained in:
Ariel Rin 2022-11-03 10:33:25 +00:00
commit 7a195d4158
2 changed files with 23 additions and 0 deletions

View File

@ -13,4 +13,5 @@ The official installation guide will install a stable version of Alliance Auth t
gunicorn gunicorn
celery celery
redis
``` ```

View File

@ -0,0 +1,22 @@
# Redis
## Compression
Cache compression can help tame the memory usage of specialised installation configurations and Community Apps that heavily utilize Redis.
Various compression algorithms are supported, with various strengths. Our testing has shown that lzma works best with our use cases. You can read more at [Django-Redis Compression Support](https://github.com/jazzband/django-redis#compression-support)
Add the following lines to `local.py`
```python
import lzma
CACHES = {
"default": {
# ...
"OPTIONS": {
"COMPRESSOR": "django_redis.compressors.lzma.LzmaCompressor",
}
}
}
```