欢迎各位兄弟 发布技术文章
这里的技术是共享的
[root@ebs-28766 ~]# vim /root/cron_ykt_cron.sh
#!/bin/bash
#
# this is the standard Drupal cron invocation that runs from cron
# this will flush the Page Cache when Minimum Cache Lifetime set to <none>
#
wget -O - -q -t 1 http://ykt.aaaa.com/cron.php?cron_key=uWdddddddfMQk0
#
# use the sitemap and reload the Page Cache by accessing each page once
#
wget --quiet http://ykt.aaaa.com/sitemap.xml --output-document - | egrep -o "http://ykt.aaaa.com[^<]+" | wget -q --delete-after -i -O -
~
~