I have installed varnish and Expire modules and setup them. They are working very well but I have one problem regarding deleting cache from varnish.

The problem is how to delete varnish cache only for index(home) page and not to delete cache for other pages. I look at he varnish log and I found that whole varnish cache is deleted every time Drupal executes command

ban req.http.host ~ www.cdm.me && req.url ~ "/"

This command is executed by varnish module or expire module and it means delete cache of home(index) page. But as I see it is deleting cached pages.

So the question is how to fix this? How can I delete only cache on home page?

Comments

bibo’s picture

You should try using cache_actions, which allows you to set more specific rules for cache clearing.

SqyD’s picture

Category: bug » support

This is not a bug in this module. The whole Varnish cache being purged is Varnish module functionality and can be configured at the Varnish configuration page: (admin/config/development/varnish). You can use the Expire modules rules integration or the drush integration to Expire single URL's.

spleshka’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Active » Fixed

So if it is not a Cache Expiration issue I'll close it. Feel free to reopen it if you have any more questions.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.