mijora / omniva-woocommerce

11 stars 8 forks source link

Excessive calls of OmnivaLt_Wc_Order::update_meta #292

Open HenrijsS opened 1 week ago

HenrijsS commented 1 week ago

Hello.

We have a problem in our Woo store and it's related to Omniva updating the order meta. This is happening each time an order is saved. The problem is that it's taking around a minute every time an order needs to be saved. It would take shorter, but we also have to make calls to an external API and they take just 500ms. The issue arises when Omniva bugs out and makes those calls 100+ times which amounts to the minute.

I have this screenshot from New Relic which pinpointed the issue. CleanShot 2024-11-21 at 10 08 59

The api call to api.mycustomizer.com shows count 104. Not all of them are from Omniva, but as you can see on the bottom, it's entering some kind of loop.

This happens regardless of the order status or contents. And disabling the Omniva plugin reduces the save time to around 4 seconds.

Here's the site's info: https://pastebin.com/JciA6SeS Password: mijora/omniva

markakk commented 6 days ago

Hello,

In order for us to check the problem, you must contact Omniva to create such a task for us.