diff --git a/app/controllers/announcement_feeds_controller.rb b/app/controllers/announcement_feeds_controller.rb index fa2b0d9..b761d67 100644 --- a/app/controllers/announcement_feeds_controller.rb +++ b/app/controllers/announcement_feeds_controller.rb @@ -2,6 +2,9 @@ require "rss" class AnnouncementFeedsController < ApplicationController include Admin::AnnouncementsHelper def feed + Thread.new do + BulletinFeedCache.all_of({:invalid_date.ne=>nil,:invalid_date.lte => Time.now}).delete_all + end uid = params[:uid] startdt = params[:start].blank? ? nil : params[:start] enddt = params[:end].blank? ? nil : params[:end]