config: disable Redis by default.

Fixes Docker containers and development installs that don't have Redis
installed from throwing errors about failing to connect to Redis.

Downstream boorus who do use Redis will need to uncomment this line or
set `redis_url` manually in their config to enable Redis again.
This commit is contained in:
evazion
2021-03-30 05:05:55 -05:00
parent 247934ad83
commit d59b0234ac

View File

@@ -562,8 +562,11 @@ module Danbooru
def recommender_server def recommender_server
end end
# Uncomment to enable the Redis cache store. Caching is optional for
# small boorus but highly recommended for large multi-user boorus. Redis is
# required to enable saved searches.
def redis_url def redis_url
"redis://localhost:6379" # "redis://localhost:6379"
end end
end end