disable homepage cache for english page

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-07-27 05:08:24 +08:00
1 parent 7c3cc30784
commit de831f1f96
4 files changed
+4 -8

No files matched your search

+2 -2
View File
@@ -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'