Skip to content

Instantly share code, notes, and snippets.

Created February 17, 2009 18:30
Show Gist options
  • Save anonymous/65884 to your computer and use it in GitHub Desktop.
Save anonymous/65884 to your computer and use it in GitHub Desktop.
# Settings specified here will take precedence over those in config/environment.rb
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the webserver when you make code changes.
config.cache_classes = false
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = true
config.action_view.debug_rjs = true
# Don't care if the mailer can't send
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "mail.kalivo.com",
:port => 25,
:domain => "mail.kalivo.com",
:authentication => :login,
:user_name => "sbrittain",
:password => "sbr1ttain"
}
require 'memcache'
#require 'memcache_util2'
memcache_options = {
:c_threshold => 10_000,
:compression => true,
:debug => false,
:namespace => 'k_ngenera',
:readonly => false,
:urlencode => false,
:multithread => true
}
CACHE = MemCache.new memcache_options
# These are the IP addresses and ports of the memcached servers
CACHE.servers = '127.0.0.1:11211'
ActionController::Base.cache_store = CACHE, {}
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.merge!({ 'cache' => CACHE })
config.cache_store = :mem_cache_store, memcache_options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment