Re: Function caching

2006-05-23 Thread Adrian Holovaty
On 5/23/06, Elver Loho <[EMAIL PROTECTED]> wrote: > Does Django offer any decorators for caching the output of any > function, such as get_latest_books, based on the arguments passed to > it? Hi Elver, There's no specific cache decorator, but the low-level cache API is so simple to use that

Re: Function caching

2006-05-23 Thread tnleeuw
Elver Loho wrote: > Can Django's caching framework somehow be used to cache the output of > any function? > [...] > > Does Django offer any decorators for caching the output of any > function, such as get_latest_books, based on the arguments passed to > it? > [...] Such decorators already

Function caching

2006-05-23 Thread Elver Loho
Can Django's caching framework somehow be used to cache the output of any function? What I have right now is basically a standard Django project where I've swapped out the templating engine and replaced it with Kid and where I'm not using the supplied O-R mapper, but where I've written my own DB