Permalink
Browse files

trying to get caching to work

  • Loading branch information...
Rahoul Baruah
Rahoul Baruah committed Feb 10, 2009
1 parent 98a2795 commit 5e03277eb207cc5b5790912af6e37d646e183adf
Showing with 3 additions and 2 deletions.
  1. +1 −1 app/controllers/home_controller.rb
  2. +2 −1 config/environments/staging.rb
@@ -1,8 +1,8 @@
class HomeController < ApplicationController
def show
@page_title = 'Community-powered gem compatibility for ruby 1.9'
+ @latest_feedback = Comment.latest.all(:limit => 5)
unless read_fragment :controller => 'home', :action => 'show'
- @latest_feedback = Comment.latest.all(:limit => 5)
@popular = Code.popular.all(:limit => 15)
@unpopular = Code.unpopular.all(:limit => 5)
end
@@ -15,7 +15,8 @@
config.action_controller.perform_caching = true
# Use a different cache store in production
-config.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"
+#config.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"
+config.cache_store = :mem_cache_store, 'localhost'
# Enable serving of images, stylesheets, and javascripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"

0 comments on commit 5e03277

Please sign in to comment.