It would be great if there were options for each block to
1) bypass the drupal page cache for the block
2) bypass or modify the max age for reverse proxy caches for the block.
In my case the returned block contents really need to be up to the minute, but Varnish & Drupal are caching the output.
I have hacked my away around this by adding this to block_refresh_block_content :
// Tell varnish to hold data for 2 minutes
// and drupal NOT TO CACHE at all.
drupal_add_http_header('Cache-Control', 'public, max-age=120');
$GLOBALS['conf']['cache'] = FALSE;
But for general use this should be configurable.
cheers
Phil
Comments
Comment #1
tripper54 commentedComment #3
tripper54 commentedAdded to 7.x-2.x branch