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
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:
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
3 matches
Mail list logo