You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Big bulk operations in the WP-CLI context on an environment where WP_DEBUG is true can, in some use cases, result in an unsustainable growth of this query logging:
A filter should be added to the conditional for this query logging so the logging can be explicitly disabled for these bulk operations without having to change the WP_DEBUG constant, ex:
This doesn't happen on out of the box EP installs, but can happen in certain use cases. For us at VIP it happens out of the box for how we're using EP (more on this later), to replicate:
setup local wp site using vip dev-env, ensure "Enable Elasticsearch"
We reviewed how we've hooked into this for the index check, but we believe it would be best to have a filter for this query logging so this logging can be disabled entirely in the WP-CLI context without using the wider-use WP_DEBUG constant.
Screenshots, screen recording, code snippet
see above
Environment information
No response
WordPress and ElasticPress information
WP 6.6
EP 4.2.2
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Describe the bug
Big bulk operations in the WP-CLI context on an environment where
WP_DEBUG
istrue
can, in some use cases, result in an unsustainable growth of this query logging:ElasticPress/includes/classes/Elasticsearch.php
Lines 1738 to 1740 in 72e9dc0
A filter should be added to the conditional for this query logging so the logging can be explicitly disabled for these bulk operations without having to change the
WP_DEBUG
constant, ex:Steps to Reproduce
This doesn't happen on out of the box EP installs, but can happen in certain use cases. For us at VIP it happens out of the box for how we're using EP (more on this later), to replicate:
vip dev-env
, ensure "Enable Elasticsearch"wp test ing
ElasticPress/includes/classes/Elasticsearch.php
Line 1739 in 72e9dc0
This is happening specifically on VIP's use case because:
We reviewed how we've hooked into this for the index check, but we believe it would be best to have a filter for this query logging so this logging can be disabled entirely in the WP-CLI context without using the wider-use WP_DEBUG constant.
Screenshots, screen recording, code snippet
see above
Environment information
No response
WordPress and ElasticPress information
WP 6.6
EP 4.2.2
Code of Conduct
The text was updated successfully, but these errors were encountered: