• Resolved veppa

    (@veppa)


    Hello,

    Rankmath tries to purge cache with not valid request URL https:// which will return WP_Error by WordPress core. It tries purging 3 times on single page load when visiting /wp-admin/

    Request URL: https://
    Method: PURGE
    Headers: "X-Purge-Method": "default"

    This request will never pass URL validation by WordPress.

    https://developer.www.ads-software.com/reference/classes/wp_http/request/ line 275

    Maybe it is better to remove this useless request (because it will never pass WordPress URL validation) and keep WordPress admin a bit faster.

    Also any cache purging and sitemap checking better when done with ajax, wp-json or wp-cron instead of admin page “shutdown” hook.

    Regards.

    —— backtrace —-

    “backtrace”: [ “WP_Http->request”, “wp_remote_request”, “RankMath\\Helper::clear_varnish_cache”, “RankMath\\Helper::clear_cache”, “RankMath\\Sitemap\\Cache::invalidate_storage”, “RankMath\\Sitemap\\Cache_Watcher::clear_queued”, “WP_Hook->apply_filters”, “WP_Hook->do_action”, “do_action(‘shutdown’)”, “shutdown_action_hook” ]

    • This topic was modified 1 year, 7 months ago by veppa.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘not valid purge requests to https:// which will always return WP_error’ is closed to new replies.