add script for cache user
This commit is contained in:
parent
1f1868a75f
commit
4d288fb9d1
|
@ -10,6 +10,7 @@ class SyncDb
|
||||||
task = 'mid_site:sync'
|
task = 'mid_site:sync'
|
||||||
args = []
|
args = []
|
||||||
%x[rake #{task} --trace >> #{Rails.root}/log/rake.log]
|
%x[rake #{task} --trace >> #{Rails.root}/log/rake.log]
|
||||||
|
User.all.each{|ur| ur.create_dept_cache}
|
||||||
puts "SyncDb Synced"
|
puts "SyncDb Synced"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue