For me it depends on how stable the code base is. During initial release of new features I like to keep cache times low, like 5 - 15 minutes. (of course, depending on the impact of the queries) As it stabilizes and its fully tested in the wild I will ramp it up to 48 hours or so. I never go over 5 days. If something bad gets into cache I want it to clean it self out.
On Apr 16, 2009, at 11:43 AM, Chris Peterson wrote:
Are there documented best practices for setting expiration times for cached items? I'm also curious about the distribution of expiration times used by large users of memcached. Are there any metrics for the common percentages of cached items: * with no expiration time? * expiring within seconds? * expiring within minutes? * expiring within hours? * expiring within days? thanks, chris
