From be61b4488e8f40c3458e6b1c001a36b2105c09c1 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 30 Mar 2015 18:12:23 +0800 Subject: [PATCH] temp ignore cache --- app/controllers/pages_controller.rb | 7 ++++--- config/application.rb | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index b379f9b..261e9b7 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -332,9 +332,10 @@ class PagesController < ApplicationController if @editmode partials << "
" + render_widget_for_frontend(subpart.module,subpart.widget_method,subpart.widget_type,subpart.id.to_s) + "
" else - widget_html = Rails.cache.fetch("subpart_#{subpart.module}_#{subpart.id.to_s}_"+I18n.locale.to_s,{ race_condition_ttl: 2, expires_in: 5.minutes}) do - render_widget_for_frontend(subpart.module,subpart.widget_method,subpart.widget_type,subpart.id.to_s) - end + # widget_html = Rails.cache.fetch("subpart_#{subpart.module}_#{subpart.id.to_s}_"+I18n.locale.to_s,{ race_condition_ttl: 2, expires_in: 5.minutes}) do + # render_widget_for_frontend(subpart.module,subpart.widget_method,subpart.widget_type,subpart.id.to_s) + # end + widget_html = render_widget_for_frontend(subpart.module,subpart.widget_method,subpart.widget_type,subpart.id.to_s) partials << widget_html end elsif subpart.kind == "text" diff --git a/config/application.rb b/config/application.rb index ef1fd0f..b0e8bb2 100644 --- a/config/application.rb +++ b/config/application.rb @@ -38,6 +38,6 @@ module Orbit # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de - config.mongoid.observers = :orbit_observer + # config.mongoid.observers = :orbit_observer end end