Last active
September 7, 2017 16:36
-
-
Save amikoreh/c083587fc6cd0e4878cdcf09a1d1ae0d to your computer and use it in GitHub Desktop.
WordPress Cron Job Fix Options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP: | |
cd /home/webuser/public_html/wpfolderlocation; php -q wp-cron.php | |
cd /home/webuser/public_html/wpfolderlocation; php /home/webuser/public_html/wpfolderlocation/wp-cron.php?doing_wp_cron > /dev/null 2>&1 | |
curl: | |
curl --silent "https://example.com/wp-cron.php?doing_wp_cron" > /dev/null 2>&1 | |
curl --insecure --silent "https://example.com/wp-cron.php?doing_wp_cron&UNIQUECODE" >/dev/null 2>&1 | |
WP-Cli: | |
cd /home/webuser/public_html/wpfolderlocation; wp cron event run --due-now > /dev/null 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment