hi,

i want to follow the suggestion on web2py books
http://web2py.com/book/default/chapter/11#Efficiency-and-Scalability
:
Set session.forget() in all controllers and/or functions that do not
change the session.
is it means that every controller i must use :

def call():
    session.forget()
    return service()

or i pass session.forget() to every function that i defined in
controller, i mean.
e.g.

def blog():
    table = db.blog
    search, rows = crud.search(table)
    session.forget()
    return dict(search = search, rows = rows)

def news():
    table = db.news
    search, rows = crud.search(table)
    session.forget()
    return dict(search = search, rows = rows)

thank you so much

Reply via email to