Site icon Hip-Hop Website Design and Development

Most effective solution to set off wp-cron via system cron.

I’ve just lately determined it will be greatest if i disable the inbuilt wordpress cron operate and transfer to the system cron which can activate the wordpress cron each quarter-hour.

I’m questioning which method is greatest and what the variations are efficiency smart and so forth?

The 2 methods I’ve seen this accomplished are:

curl http://instance.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1

and

cd /var/www/instance.com/htdocs; php /var/www/instance.com/htdocs/wp-cron.php?doing_wp_cron > /dev/null 2>&1

Which method is healthier, and what are the advantages of a sure method?
Any recommendation can be nice and appreciated!