Re: Help with a Caching Strategy

2007-07-06 Thread Jeremy Dunck
On 7/6/07, Clint Ecker <[EMAIL PROTECTED]> wrote: ... > When I set up caching I then just cache this_month_detail for 15 > minutes and previous_month_detail for 10 years or so. What cache backend are you using? Note that memcached has an LRU expiry policy, so that if there is pressure on the cac

Re: Help with a Caching Strategy

2007-07-06 Thread Clint Ecker
Thanks Jeremy, I'll try to expand a bit, and give some insight into a solution I crafted this morning after reading your message (it flipped a switch in my brain) > How's the data updated? Need to know how to get the update info to > the cache. :) The data is updated by a crontab job that

Re: Help with a Caching Strategy

2007-07-05 Thread Jeremy Dunck
On 7/5/07, Clint Ecker <[EMAIL PROTECTED]> wrote: > It would be super cool to invalidate the cache (or not) at the > moment I update the data, but it's not mission critical. How's the data updated? Need to know how to get the update info to the cache. :) > Long story short, my current approach

Help with a Caching Strategy

2007-07-05 Thread Clint Ecker
In one of the applications I maintain, I use a view that takes the following inputs, crunches a lot of data from over the course of a month, and spits out a view: def month_detail(request, year, month, check=True): This could be the current month, the previous month, a month 3 years ago, etc. Th