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
Comment #1
bibo commentedYou should try using cache_actions, which allows you to set more specific rules for cache clearing.
Comment #2
SqyD commentedThis 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.
Comment #3
spleshkaSo if it is not a Cache Expiration issue I'll close it. Feel free to reopen it if you have any more questions.