Re: Caching Expression in Templates using a custom "Cache" Tag

2005-12-02 Thread Ian Holsman
hmm.. I wonder if there is a way for the django model API to do this automatically for you. and it would cache EVERYTHING for the given request. On 12/1/05, Eric Baker <[EMAIL PROTECTED]> wrote: > > I wrote a custom tag that allows you to cache an expression in a > template. > > I noticed, that

Caching Expression in Templates using a custom "Cache" Tag

2005-11-30 Thread Eric Baker
I wrote a custom tag that allows you to cache an expression in a template. I noticed, that my template was sending many duplicate queries to the database because I was using a method in my model that used a foreign key in a loop with many repeats. I could have recoded the view to generate all th