mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Chore: Use memory cache backend in debug mode (#5666)
This commit is contained in:
parent
4813a7bc70
commit
4606caeaa8
@ -771,6 +771,11 @@ CACHES = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if DEBUG and os.getenv("PAPERLESS_CACHE_BACKEND") is None:
|
||||||
|
CACHES["default"][
|
||||||
|
"BACKEND"
|
||||||
|
] = "django.core.cache.backends.locmem.LocMemCache" # pragma: no cover
|
||||||
|
|
||||||
|
|
||||||
def default_threads_per_worker(task_workers) -> int:
|
def default_threads_per_worker(task_workers) -> int:
|
||||||
# always leave one core open
|
# always leave one core open
|
||||||
|
Loading…
x
Reference in New Issue
Block a user