Forum Discussion

Oto_Maly_69556's avatar
Oto_Maly_69556
Icon for Nimbostratus rankNimbostratus
Jul 27, 2012

Conditional Refreshing Documents in Cache

Hi,

 

I am wondering if it is possible to control cached documents in some conditional way.

 

I have a scenario where there are several dependent documents.

 

e.g. url1, url2, url3 with cache headers of 15 minutes

 

at time

 

00:00 client browses url1

 

05:00 client browses url2

 

10:00 client browses url3

 

 

each of the documents will expire at different time, but those documents are very dependent.

 

In case new version of some of the documents is found, i would like to refresh in LB cache also the other two.

 

 

at time

 

16:00 client browses url1 - cache finds out it is expired and refreshes it.

 

If it finds a new version of url1, it should refresh url2 and url3 in the LB cache.

 

 

Is something like that possible? Can you give me some hints on such iRule?

 

 

Or basically some rule that if any of the url1,url2,url3 is expired, it will refresh all of them.

 

so if at time 00:00 url2 is requested LB will request also url1, and url3 and store it is it cache.

 

obviously to client at this time it will only send reponse to url2.

 

 

Thanks

 

regards

 

Oto

 

  • Oto, what's your caching appliance? What version are you running on the LTM?

     

     

    I can imagine (but not write, we're not running v11 here) some solution using tables to keep a timeout interval for each of your pages, and then a sideband connection to some API on your cache server to issue a refresh. You'd want to look at the table command and the connect/send/recv/close commands.