Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

new northscale memcache settings for heroku

  • Loading branch information...
commit c8fac2a250ed81ce5251e2d0b331b23f7e1e1bc1 1 parent 1884764
Jim Gilliam authored
View
1  .gems
@@ -7,3 +7,4 @@ liquid
dweinand-will_paginate --source 'http://gems.github.com'
facebooker --version 1.0.53
hoptoad_notifier
+memcached
View
3  config/environment.rb
@@ -24,6 +24,8 @@
config.gem 'dweinand-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com/'
config.gem 'facebooker', :version => '1.0.53'
config.gem 'hoptoad_notifier'
+ config.gem 'memcached'
+
#config.gem 'curb', :version => '0.1.4'
# Settings in config/environments/* take precedence over those specified here.
@@ -79,6 +81,7 @@
require 'open-uri'
require 'validates_uri_existence_of'
require 'timeout'
+require 'memcached'
TagList.delimiter = ","
View
7 config/environments/production.rb
@@ -3,12 +3,7 @@
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
-
-if ENV['MEMCACHE_SERVERS']
- config.cache_store = :mem_cache_store, ENV['MEMCACHE_SERVERS'], { :namespace => ENV['MEMCACHE_NAMESPACE']}
-else
- config.cache_store = :mem_cache_store, 'localhost:11211'
-end
+config.cache_store = :mem_cache_store, Memcached::Rails.new
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
Please sign in to comment.
Something went wrong with that request. Please try again.