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

Added memcached and set up cached items for up_matches page

This commit is contained in:
2015-12-17 18:44:24 +00:00
parent 127474da9c
commit 983cc9c667
7 changed files with 34 additions and 7 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"