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:
Sam
2013-05-07 17:32:43 +10:00
parent a64e04ca42
commit 68e6405aca
3 changed files with 16 additions and 5 deletions

View File

@@ -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