WordPress.org

Ready to get started?Download WordPress

Forums

Rename wp-cron.php and run with system crontab? (2 posts)

  1. ericr23
    Member
    Posted 5 years ago #

    Would it be OK to rename the wp-cron.php file (to, say, wp-croncron.php) and then invoke it (say, hourly) by crontab command?

    Our site has been shut down twice by our host for CPU overuse due to wp-cron.php, and is only running now because we've promised to shut down the culprit WordPress-run portion. Unfortunately, it was our most popular feature, a daily compilation of news concerning our nonprofit's area of concern.

    We run on a shoestring, but the frequent glitches of shared hosting seem to be problematic for wp-cron.php. So if it could be invoked in a more infrequent manner (once an hour instead of 3,000 times a minute), maybe we could avoid these CPU overuse problems.

  2. ericr23
    Member
    Posted 5 years ago #

    Nope.

    New tack: Delete wp-cron.php (and delete 'cron' row in wp_options table). Write routine to check hourly if updated and if so, ping (Ping-O-Matic), etc. (rebuild sitemap, ping search engines, post future-dated posts).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.