From de831f1f96ded7dd77f6bb4b623703fb2ca2694a Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Fri, 27 Jul 2012 05:08:24 +0800 Subject: [PATCH] disable homepage cache for english page --- Gemfile | 4 ++-- Gemfile.lock | 4 ---- app/controllers/pages_controller.rb | 4 ++-- public/index1.html | 0 4 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 public/index1.html diff --git a/Gemfile b/Gemfile index 094192a1..9dfdce1c 100644 --- a/Gemfile +++ b/Gemfile @@ -15,8 +15,8 @@ gem 'jquery-ui-rails' gem 'kaminari', :git => 'git://github.com/amatsuda/kaminari.git' -gem "memcached", "~> 1.4.3" -gem "memcache-client" +# gem "memcached", "~> 1.4.3" +# gem "memcache-client" gem 'mini_magick' gem 'mongoid' diff --git a/Gemfile.lock b/Gemfile.lock index d0e8d857..99b4d9a7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -115,8 +115,6 @@ GEM i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) - memcache-client (1.8.5) - memcached (1.4.3) mime-types (1.17.2) mini_magick (3.4) subexec (~> 0.2.1) @@ -308,8 +306,6 @@ DEPENDENCIES jquery-rails jquery-ui-rails kaminari! - memcache-client - memcached (~> 1.4.3) mini_magick mongo_session_store-rails3 mongoid diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 6b365042..8e4f3f26 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -3,12 +3,12 @@ class PagesController < ApplicationController include ApplicationHelper before_filter :get_item, :only => [:index_from_link, :show_from_link] - caches_page :index + # caches_page :index def index @item = Page.find_by_name('home') if @item - impressionist(@item) + #impressionist(@item) render_page else render :text => 'You need a home page' diff --git a/public/index1.html b/public/index1.html deleted file mode 100644 index e69de29b..00000000