Indexables queries still running with should_index_indexables filter set false
-
Trying to use the new ‘Yoast\WP\SEO\should_index_indexables’ filter like so…
add_filter( 'Yoast\WP\SEO\should_index_indexables', 'tl_disable_indexables' ); function tl_disable_indexables(){ return false; }
I can see the that the two tables stopped populating, which is great.
However, the plugin is still running indexables queries on the frontend.
For example, on a single post the following queries can be seen:
SELECT * FROM <code>wp_yoast_indexable</code> WHERE <code>object_id</code> = '194164' AND <code>object_type</code> = 'post' LIMIT 1
DELETE FROM <code>wp_yoast_indexable_hierarchy</code> WHERE <code>indexable_id</code> = NULL
SELECT * FROM <code>wp_yoast_indexable</code> WHERE <code>object_id</code> = '2' AND <code>object_type</code> = 'user' LIMIT 1
SELECT * FROM <code>wp_yoast_indexable</code> WHERE <code>object_type</code> = 'home-page' LIMIT 1
Is this expected behavior?
The hope was that this filter would also prevent the overhead associated with these queries.
Thank you,
TL
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Indexables queries still running with should_index_indexables filter set false’ is closed to new replies.