From 4768da3c7aa55d12008a9dc8599bbb19b7f1259c Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Wed, 25 Jul 2012 18:26:05 +0800 Subject: [PATCH] fix announcement loading failed caused by impression. disable pinyin search. --- config/initializers/redis_search.rb | 2 +- .../panel/announcement/front_end/bulletins_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/redis_search.rb b/config/initializers/redis_search.rb index 5fe14cf3..f8489b1e 100644 --- a/config/initializers/redis_search.rb +++ b/config/initializers/redis_search.rb @@ -10,7 +10,7 @@ redis = Redis::Namespace.new("orbit_nccu:redis_search2", :redis => redis) Redis::Search.configure do |config| config.redis = redis config.complete_max_length = 100 - config.pinyin_match = true + #config.pinyin_match = true # use rmmseg, true to disable it, it can save memroy config.disable_rmmseg = false end diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb index 1449ec91..33f5df00 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb @@ -37,7 +37,7 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController else @bulletin = Bulletin.all.can_display.where(_id: params[:id]).first unless @bulletin.disable? - impressionist(@bulletin) + #impressionist(@bulletin) get_categorys else render :nothing => true, :status => 403