Hello,

I am using cache actions to clear my varnish cache. This generally works great!

Is it also possible to clear a specific view from the varnish cache every hour with cache actions?

Some more information: This view shows events that happen in the future. At the moment the view only gets deleted from my varnish cache when a node (event) is created/changed/deleted.
If no event-node is created/changed/deleted, the view stays in the varnish cache for days and shows old events that already took place. So i need a way to clear only this view from my varnish cache every hour.

Comments

MicS65’s picture

I am looking for a functionality like this myself:
(1) I need to delete some nodes and views from my varnish cache at a special time-interval. For example node-1 every 20 minutes, node-2 every 120 minutes, view-1 every 60 minutes
(2) All other nodes and views should stay in the varnish cache as long a nothing is changed or a comment is posted

(2) can be done with cache actions
How can I get (1) working? Is this also possible with cache actions? Can rules be triggered every X minutes? Or is there another way to achieve this?

alex.bukach’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.x-dev
Component: Miscellaneous » Code
Category: Support request » Feature request
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.21 KB

I need this feature too. Here's a patch.

alex.bukach’s picture

Oh, sorry, the patch is for panels only. If one still needs the same for views, please leave a note here.