langalex / local_cache

A ruby on rails (>= 2.1) plugin that extends the cache store with an in memory cache to enhance caching performance and solves a race conditions. (replaces extended_fragment_cache)

This URL has Read+Write access

Casper Gripenberg (author)
Mon Jan 12 10:15:19 -0800 2009
local_cache / init.rb
100644 7 lines (5 sloc) 0.334 kb
1
2
3
4
5
6
7
require File.dirname(__FILE__) + '/lib/local_cache_helper'
require File.dirname(__FILE__) + '/lib/proxying_local_cache_store'
 
ActionController::Base.send :include, LocalCacheHelper
 
# replace the configured cache store with our proxy
ActionController::Base.cache_store = ProxyingLocalCacheStore.new ActionController::Base.cache_store