欢迎各位兄弟 发布技术文章
这里的技术是共享的
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.400.com/cron.php?cron_key=uWdhZNrttyyuuiikdxHsSyCSJGpagxAK7n3Iad
#
# use the sitemap and reload the Page Cache by accessing each page once
#
wget --quiet http://ykt.400.com/sitemap.xml --output-document - | egrep -o "http://ykt.400.com[^<]+" | wget -q --delete-after -i -O -