Skip to content

Instantly share code, notes, and snippets.

@ozh
Created January 19, 2015 11:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozh/0cd11817a4767d87bb72 to your computer and use it in GitHub Desktop.
Save ozh/0cd11817a4767d87bb72 to your computer and use it in GitHub Desktop.
Manual CRON in WP

wp-config.php:

define( 'DISABLE_WP_CRON', true );

Cronjob: one of:

*/15 * * * * wget -q -O - http://www.website.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
*/15 * * * * curl http://www.website.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1
*/15 * * * * cd /home/user/public_html; php wp-cron.php > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment