Created
November 20, 2008 22:49
-
-
Save jackdempsey/27249 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Merb::BootLoader.before_app_loads do | |
| # page cache to the public dir | |
| Merb::Cache.register(:page_store, Merb::Cache::PageStore[Merb::Cache::FileStore], :dir => Merb.root / :public) | |
| # action cache to memcache | |
| Merb::Cache.register(:action_store, Merb::Cache::ActionStore[Merb::Cache::FileStore]) | |
| # sets up the ordering of stores when attempting to read/write cache entries | |
| Merb::Cache.register(:default, Merb::Cache::AdhocStore[:page_store, :action_store]) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment