• Resolved Leofitz

    (@leofitz)


    I’m not an expert on the Cron functions but did read that some site updates are triggered whenever a new visitor hits a page on your site. I currently have 20+ students sites that have been getting hit by waves of spambots trying to auto register or post comments to old pages. I believe the security aspect is now tackled but the thousands of hits have created high CPU Usage in my shared account.

    Are there settings adjustments that you could suggest that would help avoid Cron Job updates every ten seconds when a new bot hits a site? Currently there are nearly zero new comments being posted which is fine and registration is highly restricted. So updates for any visual or text content to benefit real visitors, could happen only a few times a day.

    Suggestions? Thanks for the plugin!

    https://www.ads-software.com/plugins/wp-crontrol/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Are there settings adjustments that you could suggest that would help avoid Cron Job updates every ten seconds when a new bot hits a site?

    Not sure what you mean here. Do you have a cron event scheduled with a ten second interval? If so, there’s nothing you can do about it as WP-Cron needs to fire every ten seconds in order to trigger the event. You really shouldn’t have an event with that short an interval though.

    If WP-Cron is spawning every ten seconds but you don’t have an event with a ten second interval scheduled, then something’s going wrong somewhere.

    John, what I think the OP is asking is this:

    Is there a way to prevent the built-in wp-cron from executing whenever someone (or a robot) visits the site?

    Either way, I’d like to know this answer… Does the built in wp-cron functionality really execute whenever a page is loaded? If so, that is an obvious waste of resources. Does your plugin prevent that?

    Thanks, Ron

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I’ve just answered Ron’s question in his other thread: https://www.ads-software.com/support/topic/can-i-safely-disable_wp_cron

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Schedule adjustments to drop CPU Usage?’ is closed to new replies.