stream
stream copied to clipboard
WooCommerce connector: 75% of entries are for mysterious "tax rate updated" events
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_id
s 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 https://github.com/woocommerce/woocommerce/issues/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

System Information
- Stream plugin version: 3.8.2
- WordPress version: 5.9.3
- PHP version: 7.4.28
- Browser: all
- Computer operating system: all