disable homepage cache for english page
This commit is contained in:
parent
7c3cc30784
commit
de831f1f96
4
Gemfile
4
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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Reference in New Issue