From 64cdee482a1b9e5e2d8fa5458926d65f20db67e3 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 9 Sep 2013 22:33:50 -0300 Subject: [PATCH] Delay slow expire_caches --- app/sweepers/profile_sweeper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sweepers/profile_sweeper.rb b/app/sweepers/profile_sweeper.rb index bca6563..1d53bb9 100644 --- a/app/sweepers/profile_sweeper.rb +++ b/app/sweepers/profile_sweeper.rb @@ -4,7 +4,7 @@ class ProfileSweeper # < ActiveRecord::Observer include SweeperHelper def after_update(profile) - expire_caches(profile) + self.delay.expire_caches profile end def after_create(profile) -- libgit2 0.21.2