mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
redis rack cache was crazy, it was just storing stuff in redis FOREVER, added a PR to fix, forked to my repo, sourcing a sane version
This commit is contained in:
@@ -2,6 +2,10 @@ if Rails.configuration.respond_to?(:enable_rack_cache) && Rails.configuration.en
|
||||
require 'rack-cache'
|
||||
require 'redis-rack-cache'
|
||||
|
||||
# by default we will cache up to 3 minutes in redis, if you want to cut down on redis usage
|
||||
# cut down this number
|
||||
RedisRackCache.max_cache_seconds = 60 * 3
|
||||
|
||||
url = DiscourseRedis.url
|
||||
|
||||
class Rack::Cache::Discourse < Rack::Cache::Context
|
||||
|
||||
Reference in New Issue
Block a user