mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-16 03:30:05 -05:00
12 lines
347 B
Ruby
12 lines
347 B
Ruby
|
if Rails.configuration.respond_to?(:enable_rack_cache) && Rails.configuration.enable_rack_cache
|
||
|
require 'rack-cache'
|
||
|
require 'redis-rack-cache'
|
||
|
|
||
|
url = DiscourseRedis.url
|
||
|
|
||
|
Rails.configuration.middleware.insert 0, Rack::Cache,
|
||
|
metastore: "#{url}/metastore",
|
||
|
entitystore: "#{url}/entitystore",
|
||
|
verbose: !Rails.env.production?
|
||
|
end
|