mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-02 04:55:36 +00:00
caching
This commit is contained in:
1 parent
ed39e9e15f
commit
0024c2aae4
3 files changed
+22
-2
No files matched your search
@@ -169,6 +169,16 @@ CHANNEL_LAYERS = {
|
||||
},
|
||||
}
|
||||
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
"LOCATION": os.getenv("PAPERLESS_REDIS", "redis://localhost:6379"),
|
||||
"OPTIONS": {
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
# Security #
|
||||
###############################################################################
|
||||
@@ -398,7 +408,7 @@ Q_CLUSTER = {
|
||||
'name': 'paperless',
|
||||
'catch_up': False,
|
||||
'workers': TASK_WORKERS,
|
||||
'redis': os.getenv("PAPERLESS_REDIS", "redis://localhost:6379")
|
||||
'django_redis': 'default'
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user