fixed and re-enabled support for memcache in the production site
[selectricity] / config / environments / production.rb
index 5a4e2b1c53cc6201773f0622e2c14b7c2ee24da9..4bb13510ef6ff610417fb7dd61803e5795e8eee1 100644 (file)
@@ -1,4 +1,8 @@
 # Settings specified here will take precedence over those in config/environment.rb
+#
+#Enable memcache
+require('memcache')
+Cache=MemCache.new('localhost', :compression => true)
 
 # The production environment is meant for finished, "live" apps.
 # Code is not reloaded between requests
@@ -14,5 +18,5 @@ config.action_controller.perform_caching             = true
 # Enable serving of images, stylesheets, and javascripts from an asset server
 # config.action_controller.asset_host                  = "http://assets.example.com"
 
-# Disable delivery errors if you bad email addresses should just be ignored
+# Disable delivery errors, bad email addresses will be ignored
 # config.action_mailer.raise_delivery_errors = false

Benjamin Mako Hill || Want to submit a patch?