Re: cache_page used as 2.4 decorator with time

2006-05-11 Thread Malcolm Tredinnick
On Fri, 2006-05-12 at 10:06 +1000, Malcolm Tredinnick wrote: > On Thu, 2006-05-11 at 21:27 +0100, Graham King wrote: > > When trying to cache a page using the cache_page decorator, it doesn't > > seem to work when passing a time with the python 2.4 syntax. > > > > This works: > > > > @c

Re: cache_page used as 2.4 decorator with time

2006-05-11 Thread Malcolm Tredinnick
On Thu, 2006-05-11 at 21:27 +0100, Graham King wrote: > When trying to cache a page using the cache_page decorator, it doesn't > seem to work when passing a time with the python 2.4 syntax. > > This works: > > @cache_page > def index(request): >do stuff > > As does this:

cache_page used as 2.4 decorator with time

2006-05-11 Thread Graham King
When trying to cache a page using the cache_page decorator, it doesn't seem to work when passing a time with the python 2.4 syntax. This works: @cache_page def index(request): do stuff As does this: def index(request): do stuff index = cache_page(index, 60