Skip to content

Instantly share code, notes, and snippets.

@sjozsef
Created March 10, 2016 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjozsef/95c420ba1bb783cb44e8 to your computer and use it in GitHub Desktop.
Save sjozsef/95c420ba1bb783cb44e8 to your computer and use it in GitHub Desktop.
How to setup a real cron job for WordPress with Linux Crontab and PHP CLI
crontab -e
*/10 * * * * cd /var/www/example.com/htdocs; php /var/www/example.com/htdocs/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