mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
classifier cache timeout
This commit is contained in:
parent
a4c1252a3b
commit
85366024ec
@ -39,7 +39,8 @@ def load_classifier():
|
|||||||
classifier = DocumentClassifier()
|
classifier = DocumentClassifier()
|
||||||
try:
|
try:
|
||||||
classifier.load()
|
classifier.load()
|
||||||
cache.set("paperless-classifier", classifier, version=version)
|
cache.set("paperless-classifier", classifier,
|
||||||
|
version=version, timeout=86400)
|
||||||
except (EOFError, IncompatibleClassifierVersionError) as e:
|
except (EOFError, IncompatibleClassifierVersionError) as e:
|
||||||
# there's something wrong with the model file.
|
# there's something wrong with the model file.
|
||||||
logger.error(
|
logger.error(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user