No. This will render the page the same to all users including the
welcome message. Moreover the
@cache(request.env.path_info)

will cause a vulnerability because
http://.../index
http://.../index/1
http://.../index/2
...
http://.../index/99999999999

will all be cached separately and cause a memory leak.





On Oct 6, 1:43 pm, "Martin.Mulone" <[email protected]> wrote:
> a simple question about cache
>
> if i have this in controller:
>
> @cache(request.env.path_info, time_expire=CACHE_TIME_EXPIRE_PAGES,
> cache_model=cache.ram)
> def index():
>     try:
>         page = int(request.args[0])
>     except:
>         page = 1
>
>     d = dict(page=page)
>     return response.render(d)
>
> but i have auth.navbar setting in view, this will be render
> differently in each users?. I have this doubt.

Reply via email to