cache first commit
This commit is contained in:
parent
85d6bbe1c9
commit
0e65e379b0
|
@ -3,10 +3,11 @@ class PagesController < ApplicationController
|
|||
include ApplicationHelper
|
||||
|
||||
before_filter :get_item, :only => [:index_from_link, :show_from_link]
|
||||
|
||||
|
||||
def index
|
||||
@item = Page.find_by_name('home')
|
||||
if @item
|
||||
|
||||
if @item && (stale? etag: @item.updated_at)
|
||||
impressionist(@item)
|
||||
render_page
|
||||
else
|
||||
|
|
|
@ -12,7 +12,7 @@ Orbit::Application.configure do
|
|||
# Show full error reports and disable caching
|
||||
config.consider_all_requests_local = false
|
||||
#config.action_view.debug_rjs = true
|
||||
config.action_controller.perform_caching = false
|
||||
config.action_controller.perform_caching = true
|
||||
|
||||
# Don't care if the mailer can't send
|
||||
config.action_mailer.raise_delivery_errors = false
|
||||
|
|
Loading…
Reference in New Issue