WordPress.org

Support

Support » Installation » How does wp-cron get set up during installation?

How does wp-cron get set up during installation?

  • I’ve searched but can’t find an answer to this.

    How does WordPress install tell Apache/Cron to call wordpress cron on a regular basis?

    Or do I need to set up a cron task after install to call wp-cron.php?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • reedhedges
    Member

    @reedhedges

    ::sound of crickets chirping::

    I’m completely mystified by “wp-cron” wrt WP 2.2. It’s a plugin (though no longer maintained by its author), but it’s also part of WordPress 2.2. Should I install the plugin? Should I add an entry to a crontab that runs php with wp-cron.php?

    reedhedges
    Member

    @reedhedges

    OK, I think I figured it out. WP-cron has nothing to do with cron. So it doesn’t need any cronjob entries or do anything to apache. It’s just a rough approximation; whenever anything happens in wordpress, like a page load, then it checks to see if there are any “cron” jobs scheduled to do, and it does them.

    I am curious how this work with caching, either by apache or by wp-cache plugin…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How does wp-cron get set up during installation?’ is closed to new replies.