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
WP Engine adds a comment on to the end of all MySQL queries via a function in the wpengine-common mu-plugin installed on all sites they host, using the query filter hook:
Here's an example of the resulting SQL:
SELECT SQL_CALC_FOUND_ROWS abc123_posts.ID
FROM abc123_posts
WHERE 1=1
AND ((abc123_posts.post_type = 'post'
AND (abc123_posts.post_status = 'publish'
OR abc123_posts.post_status = 'future'
OR abc123_posts.post_status = 'draft'
OR abc123_posts.post_status = 'pending'
OR abc123_posts.post_status = 'private')))
ORDER BY abc123_posts.post_date DESC
LIMIT 0, 100 /* From [example.com/wp-admin/edit.php] in [/nas/content/live/example/wp-content/plugins/query-monitor/classes/DB.php:29] */
This means that the 'Main query' option in Query Monitor's Caller filter is not available, because the SQL is different to $wp_the_query->request, which is what QM checks each query against.
I wonder if it's possible when doing that check to ignore any comments, so the 'Main query' option will be available?
The text was updated successfully, but these errors were encountered:
WP Engine adds a comment on to the end of all MySQL queries via a function in the
wpengine-common
mu-plugin installed on all sites they host, using thequery
filter hook:Here's an example of the resulting SQL:
This means that the 'Main query' option in Query Monitor's Caller filter is not available, because the SQL is different to
$wp_the_query->request
, which is what QM checks each query against.I wonder if it's possible when doing that check to ignore any comments, so the 'Main query' option will be available?
The text was updated successfully, but these errors were encountered: