• Resolved toddlevy

    (@toddlevy)


    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)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @toddlevy

    In the latest version of Yoast SEO for WordPress 18.2, we did introduce the Yoast\WP\SEO\should_index_indexables filter to enable/disable creating the indexables.

    Regarding your inquiry, I’ll try to ask our developers if this is the expected behavior (regarding the frontend queries) and try to get back to you with a response.

    Thanks for your patience.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    We do have an open issue where even though the indexables have been disabled on non-production environments, some queries related to the indexables still appear (such as when visiting the posts overview page) even though it doesn’t save anything.

    We don’t have an exact ETA as to when this would be addressed, but please do check on future plugin updates and in the changelog for any upcoming enhancements or related filters that might address this.

    Thanks.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

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.