diff --git a/lib/tasks/feeds_tasks.rake b/lib/tasks/feeds_tasks.rake index aba1eb5..7520137 100644 --- a/lib/tasks/feeds_tasks.rake +++ b/lib/tasks/feeds_tasks.rake @@ -3,6 +3,7 @@ namespace :feeds_module do task :make_cache,[:url] => :environment do |task,args| main_directory = File.join("#{Rails.root}","public","site_feeds") FileUtils.mkdir_p(main_directory) if !File.exists?(main_directory) + SiteFeedAnnc SiteFeed.enabled.each do |site_feed| feed_directory = File.join(main_directory.to_s, site_feed.id.to_s) FileUtils.mkdir_p(feed_directory) if !File.exists?(feed_directory)