Skip to content

Instantly share code, notes, and snippets.

@mebusw
Created March 28, 2018 03:53
Show Gist options
  • Save mebusw/bbeffe870ea3259aacd9f3577ba08121 to your computer and use it in GitHub Desktop.
Save mebusw/bbeffe870ea3259aacd9f3577ba08121 to your computer and use it in GitHub Desktop.
crontab for wordpress site, note sometimes env variables need to be explicitly specified so run the cronjob properly
*/20 * * * * /usr/sbin/ntpdate pool.ntp.org > /dev/null 2>&1
*/15 * * * * wget -q -O �C http://www.uperform.cn//wp-cron.php?doing_wp_cron >/dev/null 2>&1
* * * * * source /etc/profile;/bin/sh /root/healthcheck-php-mysql.sh > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment