add script for cache user

This commit is contained in:
Matthew K. Fu JuYuan 2012-05-22 17:57:45 +08:00
parent 97e289f823
commit 3e60b34491
1 changed files with 1 additions and 0 deletions

View File

@ -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