fix announcement loading failed caused by impression. disable pinyin search.
This commit is contained in:
parent
87549d4e1f
commit
4768da3c7a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue