summaryrefslogtreecommitdiff
path: root/dockerfiles
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-01-05 11:22:48 +0100
committerAlexandre Flament <alex@al-f.net>2021-01-12 11:47:17 +0100
commit6e2872f43625aba71eba019e16f7fbd74743f590 (patch)
tree858625b7b0410503c41e8ccca14b28202d13c961 /dockerfiles
parent9c581466e136f7cb82d5ffe6c052fbd9e93ab39f (diff)
[enh] add searx.shared
shared dictionary between the workers (UWSGI or werkzeug) scheduler: run a task once every x seconds (UWSGI or werkzeug)
Diffstat (limited to 'dockerfiles')
-rw-r--r--dockerfiles/uwsgi.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/dockerfiles/uwsgi.ini b/dockerfiles/uwsgi.ini
index 398a440d..818a99cc 100644
--- a/dockerfiles/uwsgi.ini
+++ b/dockerfiles/uwsgi.ini
@@ -42,3 +42,6 @@ static-map = /static=/usr/local/searx/searx/static
static-expires = /* 864000
static-gzip-all = True
offload-threads = %k
+
+# Cache
+cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1