Story#108602614 - one more speed optimization

This commit is contained in:
Vladimir Krylov 2016-01-07 09:20:24 +02:00
parent f02ebe5559
commit 34aa3c0741
3 changed files with 8 additions and 2 deletions

View file

@ -55,7 +55,7 @@ module Legacy
def user
@user ||= begin
obj_his = Legacy::ObjectHistory.find_by(historyid: historyid)
Legacy::Domain.new_registrar_cached(obj_his.upid || obj_his.clid).try(:api_users).try(:first)
Legacy::Domain.new_api_user_cached(obj_his.upid || obj_his.clid)
end
end