As previously mentioned, WP-Cron does not run continuously, which can be an issue if there are critical tasks that must run on time. There is an easy solution for this. Simply set up your system’s task scheduler to run on the intervals you desire (or at the specific time needed). The easiest solution is to use a tool to make a web request to the file.
After scheduling the task on your system, there is one more step to complete. WordPress will continue to run WP-Cron on each page load. This is no longer necessary and will contribute to extra resource usage on your server. WP-Cron can be disabled in the file. Open the file for editing and add the following line:
Windows calls their time based scheduling system the Task Scheduler. It can be accessed via the Administrative Tools in the control panel.
How you setup the task varies with server setup. One method is to use PowerShell and a Basic Task. After creating a Basic Task the following command can be used to call the WordPress Cron script.
Mac OS X and Linux both use cron as their time based scheduling system. It is typically access from the terminal with the command. It should be noted that tasks will be run as a regular user or as root depending on the system user running the command.
Many servers have installed and this is an easy tool to call the WordPress Cron script.
以上就是本篇文章【Hooking WP-Cron Into the System Task Scheduler】的全部内容了,欢迎阅览 ! 文章地址:http://w.yusign.com/news/5277.html 资讯 企业新闻 行情 企业黄页 同类资讯 首页 网站地图 返回首页 述古往 http://w.yusign.com/mobile/ , 查看更多