Skip to content

IndexNow: Render key request on parse_request hook to improve performance. #162

@peterwilsoncc

Description

@peterwilsoncc

Currently the FAIR plugin renders the IndexNow key on the template_redirect hook.

Moving the rendering of the file to the parse_request hook will save about 30 database queries (based on my local testing) as WP will prepare to render the front page between parse_request and template_redirect.

Additionally, the official Bing plugin includes the header X-Robots-Tag: noindex for the file to prevent it ending up in search engines, while modifying the rendering of the file, it may be worth adding that to the headers.

I'm happy to do a PR for this if y'all are happy to make one or both of the changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions