config: don't use redis when not redis_url not configured.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
if Rails.env.test?
|
if Rails.env.test? || Danbooru.config.redis_url.blank?
|
||||||
cache_config = [:memory_store, { size: 32.megabytes }]
|
cache_config = [:memory_store, { size: 32.megabytes }]
|
||||||
else
|
else
|
||||||
cache_config = [
|
cache_config = [
|
||||||
|
|||||||
Reference in New Issue
Block a user