diff --git a/lib/feed_model/cache.rb b/lib/feed_model/cache.rb index a0569fe..1b29f03 100644 --- a/lib/feed_model/cache.rb +++ b/lib/feed_model/cache.rb @@ -13,10 +13,10 @@ module FeedModel tmp[:feed_name] = feed[:feed_name] tmp.all_contents_for_feed = feed.get_annc tmp.merge_with_category = feed.merge_with_category + tmp.channel_key = feed.channel_key tmp.category_title = feed.category[:title] rescue {} tmp.remote_site_url = feed.remote_site_url tmp.channel_title = feed.channel_title_for_cache - feed.remote_site_url tmp.save end def do_before_save diff --git a/lib/feeds/engine.rb b/lib/feeds/engine.rb index 4be8c42..dbccb70 100644 --- a/lib/feeds/engine.rb +++ b/lib/feeds/engine.rb @@ -17,6 +17,7 @@ module Feeds tmp.merge_with_category = site_feed.merge_with_category tmp.channel_key = site_feed.channel_key tmp.category_title = site_feed.category[:title] rescue {} + tmp.remote_site_url = site_feed.remote_site_url tmp.channel_title = site_feed.channel_title_for_cache tmp.save elsif !tmp.nil?