Skip to content

Instantly share code, notes, and snippets.

@amikoreh
Last active September 7, 2017 16:36
Show Gist options
  • Save amikoreh/c083587fc6cd0e4878cdcf09a1d1ae0d to your computer and use it in GitHub Desktop.
Save amikoreh/c083587fc6cd0e4878cdcf09a1d1ae0d to your computer and use it in GitHub Desktop.
WordPress Cron Job Fix Options
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