@cache(request.env.path_info, time_expire=5, cache_model=cache.ram)
def cache_controller_and_view():
 t = time.ctime()
 d = dict(time=t, link=A('click to reload', _href=URL(r=request)))
 return response.render(d)

@ cache ( request . env . path_info , time_expire = 5 , cache_model = cache . ram ) def cache_controller_and_view ( ) : t = time . ctime ( ) d = dict ( time = t , link = A ( 'click to reload' , _href = URL ( r = request ) ) ) return response . render ( d )
cache the output of the controller rendered by the view in ram .