Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WooCommerce connector: 75% of entries are for mysterious "tax rate updated" events #1328

Open
ChrisHardie opened this issue Apr 7, 2022 · 0 comments

Comments

@ChrisHardie
Copy link

Bug Report

In a high-traffic WooCommerce site, we noted that 75% of all Stream entries (many thousands of them) are for the event "1" tax rate updated, often many being logged within a few seconds or minutes of each other. The object_ids referenced appear to be various related entries in wp_woocommerce_tax_rates. Slightly over 50% of those entries are for user_id 0 while the remaining entries seem to be logged around the time when a user places an order.

There's some indication in woocommerce/woocommerce#30365 that there's an open bug around tax update events in WC being called for orders unexpectedly or unnecessarily, but I haven't found other reports of this from other Stream users, and it's hard to say if that would be causing this specific issue.

I believe the related function call is happening at https://github.com/xwp/stream/blob/develop/connectors/class-connector-woocommerce.php#L621.

Any troubleshooting advice would be welcome. We're wondering if we should just use the wp_stream_log_data filter to avoid logging these events, or if there is a better/longer-term fix that should be pursued to benefit others too. Thank you.

Screenshots

Screen Shot 2022-04-06 at 21 54 15

System Information

  • Stream plugin version: 3.8.2
  • WordPress version: 5.9.3
  • PHP version: 7.4.28
  • Browser: all
  • Computer operating system: all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant