Skip to content

Instantly share code, notes, and snippets.

@phlco
Created August 20, 2013 00:31
Show Gist options
  • Save phlco/6275788 to your computer and use it in GitHub Desktop.
Save phlco/6275788 to your computer and use it in GitHub Desktop.
configuration for Dalli - caching client
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