Improve performance of import mode.

This commit is contained in:
Martin Edenhofer 2014-11-21 19:31:28 +01:00
parent 8a5de1463a
commit 8883c74a8f

View file

@ -11,6 +11,10 @@ class Observer::Ticket::UserTicketCounter < ActiveRecord::Observer
end
def user_ticket_counter_update(record)
# return if we run import mode
return if Setting.get('import_mode')
return if !record.customer_id
# open ticket count