add script for cache user

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-05-29 15:23:50 +08:00
1 parent 6f0cf0e92e
commit ff620b41aa
1 file changed
+1
+1
View File
@@ -11,6 +11,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