From 6544bc0aee14e0f0c1fa8e4314e125709a15c5bc Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Wed, 27 May 2009 15:03:21 -0300 Subject: [PATCH] ActionItem1056: fixing bug --- app/sweepers/article_sweeper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sweepers/article_sweeper.rb b/app/sweepers/article_sweeper.rb index 77644ca..cc2c180 100644 --- a/app/sweepers/article_sweeper.rb +++ b/app/sweepers/article_sweeper.rb @@ -13,7 +13,7 @@ protected def expire_caches(article) article.hierarchy.each {|a| expire_fragment(/#{a.cache_key}/) } - blocks = article.profile.blocks.select{|b|[RecentDocumentsBlock, BlogArchivesBlock].any?{|c| b.kind_of?(c)}} + blocks = (article.profile.blocks + article.profile.environment.blocks).select{|b|[RecentDocumentsBlock, BlogArchivesBlock].any?{|c| b.kind_of?(c)}} blocks.map(&:cache_keys).each{|ck|expire_timeout_fragment(ck)} env = article.profile.environment if env.portal_community == article.profile -- libgit2 0.21.2