Best practices for setting lm-factor in Squid refresh patterns

Posted by Mpentecost on Server Fault See other posts from Server Fault or by Mpentecost
Published on 2012-10-30T16:58:24Z Indexed on 2012/10/30 17:03 UTC
Read the original article Hit count: 247

Filed under:
|

I am running a Squid (3.1) cache in front of Django. The content of the site does not change very often, so Squid gives our backend much needed breathing room.

Currently, this is the refresh pattern that we are using to cache the content:

refresh_pattern . 60 100% 60 We basically want to cache everything for at least an hour (and only an hour) before Squid then re-validates the content.

My question is on the "100%" parameter, which sets the lm-factor.

I'm not sure if setting that to 100% is doing what we want it to. The assumption was that by setting it to 100%, it would ensure that objects stay in the cache for the max cache time.

Is this an incorrect assumption?

What are the best practices that one should follow when setting up a refresh pattern like this?

© Server Fault or respective owner

Related posts about squid

Related posts about debian-squeeze