Commit a4864e0e authored by bgm's avatar bgm

Crawl pages with pragma:no-cache in case there is a varnish cache in front.

parent 6fced75b
......@@ -62,7 +62,13 @@ function boost_crawler_expire_cache($urls) {
function boost_crawler_run($url) {
// Not doing async requests in order not to kill the server
// and also for the 'time' limit of the queue to make sense.
$options = array(
'headers' => array(
'Pragma' => 'no-cache',
httprl_request($url, $options);
$request = httprl_send_request();
boost_log('Crawler fetched !url', array('!url' => $url), WATCHDOG_DEBUG);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment