Commit 64cdee482a1b9e5e2d8fa5458926d65f20db67e3

Authored by Braulio Bhavamitra
1 parent 7112cfa5

Delay slow expire_caches

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/sweepers/profile_sweeper.rb
@@ -4,7 +4,7 @@ class ProfileSweeper # < ActiveRecord::Observer @@ -4,7 +4,7 @@ class ProfileSweeper # < ActiveRecord::Observer
4 include SweeperHelper 4 include SweeperHelper
5 5
6 def after_update(profile) 6 def after_update(profile)
7 - expire_caches(profile) 7 + self.delay.expire_caches profile
8 end 8 end
9 9
10 def after_create(profile) 10 def after_create(profile)