Not sure if my assumption is correct regarding running wp-cron
from CLI would be slightly faster than calling it via wget
or curl
, so either way I'm trying this:
/usr/bin/php /var/www/mywebsite.com/wp-cron.php?import_key=<keyhere>&import_id=1&action=processing
I ensured that path to PHP and the file is correct, but I keep getting this error:
Could not open input file: wp-cron.php?import_key=
What am I doing wrong?