Fix bug.
This commit is contained in:
parent
ec3b3b41a4
commit
6de2659b04
|
@ -555,7 +555,7 @@ class AnnouncementsController < ApplicationController
|
|||
subpart = OrbitHelper.get_current_widget
|
||||
widget_data_count = OrbitHelper.widget_data_count
|
||||
anns_cache = AnnsCache.where(parent_id: subpart.id.to_s + cats.to_s + tags.to_s + widget_data_count.to_s,locale: I18n.locale.to_s)
|
||||
devide_flag = (!(defined? SiteFeed).nil?)
|
||||
devide_flag = (!(defined? SiteFeed).nil?) && (SiteFeed.count != 0)
|
||||
anns_cache.all_of([{:invalid_date.ne=>nil},{:invalid_date.lte => Time.now}]).destroy
|
||||
count = anns_cache.count
|
||||
if count > 1
|
||||
|
|
Loading…
Reference in New Issue