Warning! wp-cron.php not found!

在一台还没有做域名解释的服务器上安装 WordPress 测试,在开启 WP-Super-Cache 插件时提示Warning! wp-cron.php not found!不能进行缓存的垃圾回收工作:

Warning! wp-cron.php not found!

Unfortunately WordPress cannot find the file wp-cron.php. This script is required for the the correct operation of garbage collection by this plugin, WordPress scheduled posts as well as other critical activities.

出现Warning! wp-cron.php not found错误,只需要在 hosts 文件添加一条记录即可,如:

1
127.0.0.1 www.itkylin.com

这样就 OK 了。