diff --git a/app/models/bulletin_feed.rb b/app/models/bulletin_feed.rb index b33d64b..afc3806 100644 --- a/app/models/bulletin_feed.rb +++ b/app/models/bulletin_feed.rb @@ -171,6 +171,7 @@ class BulletinFeed "tags" => tag_names, "categories" => category_titles }.to_json + BulletinFeedCache.where(uid: uid,start: startdt,end: enddt,date: dt).destroy feed_cache = BulletinFeedCache.create(uid: uid,content: anns,start: startdt,end: enddt,date: dt,invalid_date: invalid_date) end def self.smart_convertor(text,url)