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

@ cache ( request . env . path_info , time_expire = 5 , cache_model = cache . disk ) def cache_controller_on_disk ( ) : t = time . ctime ( ) return dict ( time = t , link = A ( 'click to reload' , _href = URL ( r = request ) ) )
cache the output of the controller on disk .