Most efficient way to trigger wp-cron through system cron.
I have recently decided it would be best if i disable the built in wordpress cron function and move to the system cron which will activate the wordpress cron every 15 minutes.
I am wondering which way is best and what the differences are performance wise etc?
The two ways I have seen this done are:
curl http://example.com/wp-cron.php?doing_wp_cron /dev/null 21
and
cd /var/www/example.com/htdocs; php /var/www/example.com/htdocs/wp-cron.php?doing_wp_cron /dev/null 21
Which way is better, and what are the benefits of a certain way?
Any advice would be great and appreciated!