diff --git a/lib/feeds/engine.rb b/lib/feeds/engine.rb index 2c72667..3c8cdca 100644 --- a/lib/feeds/engine.rb +++ b/lib/feeds/engine.rb @@ -14,10 +14,12 @@ module Feeds base_url File.expand_path File.dirname(__FILE__) categorizable authorizable - begin - avoid_page_cache SiteFeed - rescue => e - puts ["avoid_page_cache", e.to_s] + if File.basename($0) != 'rake' + begin + avoid_page_cache SiteFeed + rescue => e + puts ["avoid_page_cache", e.to_s] + end end side_bar do head_label_i18n 'feed.feed', icon_class: "icons-rss"