Created
August 20, 2013 00:31
-
-
Save phlco/6275788 to your computer and use it in GitHub Desktop.
configuration for Dalli - caching client
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
client = Dalli::Client.new | |
config.action_dispatch.rack_cache = { | |
metastore: client, | |
entitystore: client, | |
allow_reload: false | |
} | |
config.cache_store = :dalli_store | |
config.serve_static_assets = true | |
config.static_cache_control = "public, max-age=2592000" | |
config.assets.digest = true | |
config.action_controller.perform_caching = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment