Skip to content

Commit

Permalink
don't overpurge
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Carpenter committed Aug 29, 2011
1 parent cf758a1 commit 9d1fd94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/observers/issue_approval_observer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class IssueApprovalObserver < ActiveRecord::Observer
def after_save(issue_approval)
purge_cache("^/")
Section.all.each do |section|
purge_cache("^/#{section.slug}.*")
purge_cache("^/#{section.slug}")
end
end
end
end

0 comments on commit 9d1fd94

Please sign in to comment.