Skip to content

Instantly share code, notes, and snippets.

@nateleavitt
Created February 23, 2010 15:55
Show Gist options
  • Save nateleavitt/312330 to your computer and use it in GitHub Desktop.
Save nateleavitt/312330 to your computer and use it in GitHub Desktop.
# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
memcached_config = YAML.load_file("#{Rails.root}/config/memcached.yml")
CACHE = Memcached.new(memcached_config['defaults']['servers'],memcached_config['defaults'])
config.cache_store = :libmemcached_store
config.action_controller.session_store = :libmemcached_store
config.action_controller.session = {
:key => '_customerhub_session',
:secret => '75cb3a8a798c3edfaerer243wafhe405df9ceb16iuofb9c',
:expires => 2400,
:cache => CACHE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment