1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Page caching set up

This commit is contained in:
2015-12-23 14:11:20 +00:00
parent be1df55e39
commit db876809ef
6 changed files with 109 additions and 94 deletions

View File

@@ -54,6 +54,14 @@ Wrestling::Application.configure do
# Use a different cache store in production.
# config.cache_store = :mem_cache_store
config.cache_store = :dalli_store,
(ENV["MEMCACHIER_SERVERS"] || "").split(","),
{:username => ENV["MEMCACHIER_USERNAME"],
:password => ENV["MEMCACHIER_PASSWORD"],
:failover => true,
:socket_timeout => 1.5,
:socket_failure_delay => 0.2
}
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = "http://assets.example.com"