Improve performance of import mode.
This commit is contained in:
parent
8a5de1463a
commit
8883c74a8f
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ class Observer::Ticket::UserTicketCounter < ActiveRecord::Observer
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_ticket_counter_update(record)
|
def user_ticket_counter_update(record)
|
||||||
|
|
||||||
|
# return if we run import mode
|
||||||
|
return if Setting.get('import_mode')
|
||||||
|
|
||||||
return if !record.customer_id
|
return if !record.customer_id
|
||||||
|
|
||||||
# open ticket count
|
# open ticket count
|
||||||
|
|
Loading…
Reference in a new issue