[squid-users] vary cache rules by time of day

From: Tim Huckle <tim_at_unysen.co.uk>
Date: Fri, 7 Jan 2011 13:06:43 +0000

Hi,

I'm caching for a short period of time a large number of delayed stock market data web service requests which ordinarily were being requested from the upstream data provider every time by the app layer. I have various refresh_patterns stipulated for the different types of requests, i.e. data that compiles a 3 month chart can be kept for several hours , a price quote for just a few minutes etc.

Whilst the volume of traffic to our site does drop after market hours and over the weekend, we would benefit hugely if I could invoke different refresh patterns after market close and over the weekend since I know at that point the data can be pulled from cache until the market next opens.

Is there a way to do this within acl or refresh_pattern or do I need to have two squid configs and cron a --reconfigure at the relevant times?

Thanks,

Tim
Received on Fri Jan 07 2011 - 13:06:50 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 07 2011 - 12:00:02 MST