From 4d288fb9d13181449dedf10b5fd43e573d03e972 Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Tue, 22 May 2012 17:57:45 +0800 Subject: [PATCH] add script for cache user --- app/jobs/sync_db.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/jobs/sync_db.rb b/app/jobs/sync_db.rb index d4bda790..4f47b8d0 100644 --- a/app/jobs/sync_db.rb +++ b/app/jobs/sync_db.rb @@ -10,6 +10,7 @@ class SyncDb task = 'mid_site:sync' args = [] %x[rake #{task} --trace >> #{Rails.root}/log/rake.log] + User.all.each{|ur| ur.create_dept_cache} puts "SyncDb Synced" end end