• esolusionsng

    (@esolusionsng)


    Please can somebody help me out to remove this:
    “?doing_wp_cron=1668372666.9439299106597900390625” showing on my Browser after my Url,

    I try to read online and i got this information.
    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{QUERY_STRING} (^|&)doing_wp_cron= [NC]
    RewriteRule (.*) /$1? [R=301,L]
    </IfModule>

    OR

    RewriteCond %{QUERY_STRING} (^|&)doing_wp_cron=[0-9]+.[0-9]+(&|$) [NC]
    RewriteRule ^ %{REQUEST_URI}? [R=301,L]

    Please can somebody guard me so that i can not break my site, i am not a professional.

    THANKS

    • This topic was modified 2 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator bcworkz

    (@bcworkz)

    Removing wp_cron query strings would cause all cron tasks to fail. To avoid them, you’d need to disable wp_cron, which would very likely break your site sooner or later. It’s your prerogative to dislike the query strings, but out of curiosity, what about them do you find objectionable?

    Thread Starter esolusionsng

    (@esolusionsng)

    Thanks for your Assistance.
    I replaced “defined DIABLE_WP_CRON_true” in wp-config.php with “defined ALTERNATE_WP_CRON_true” in wp-config.php. After That
    “?doing_wp_cron=1668372666.9439299106597900390625” started showing on my browser. i searched online on how to remove it and i got this information `
    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{QUERY_STRING} (^|&)doing_wp_cron= [NC]
    RewriteRule (.*) /$1? [R=301,L]
    </IfModule>`
    Please i am asking will this code above help me to remove it, IF YES how can i go about it and IF NO how can i solve this problem.

    Thanks

    Moderator bcworkz

    (@bcworkz)

    The .htaccess rule will remove it alright, but it also disables WP Cron. I wouldn’t recommend disabling it by any means.

    Have you tried removing any reference to Cron in wp-config.php? In other words, use normal, default WP Cron. I don’t really recall seeing doing_wp_cron in a browser when using the default method. I see it in access logs though, so it may be I just hand’t noticed it in my browser. I’m going on the idea that it’s an artifact of alternate cron and that default cron is less obtrusive. TBH, I don’t know how alternate cron really works.

    Thread Starter esolusionsng

    (@esolusionsng)

    Thanks for your assistance,
    Please which one is “normal, default WP Cron”. Please can you send it to me and all the full information.

    Thank you very much, i will be waiting for your reply.

    Moderator bcworkz

    (@bcworkz)

    Have a look at the Plugin Handbook section on WP-Cron.

    I’m not sure exactly how it works beyond what’s described there. I think it spawns another request with the wp-cron= query string so processing cron jobs do not interfere with the user request that invoked it to start with. I think this is why I’ve not actually seen the query string in my browser. Or I’m just not very observant.

    Apparently ALTERNATE_WP_CRON is a JetPack thing? The constant does not occur anywhere in core WP. This would explain why I know nothing about it. I cannot explain how it’s different than “normal” cron.

    Thread Starter esolusionsng

    (@esolusionsng)

    Thanks for your Assistance,
    I am reading this “Plugin Handbook section on WP-Cron”
    I hope it will help me to resolve it.

    Thank you very much

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How can i remove this “/?doing_wp_cron=” from showing on my Browser’ is closed to new replies.