@staff_member_required
def cache_stats(request, template_name=u'admin/cache_stats.html'):
 cache_stats = get_cache_stats()
 cache_info = settings.CACHES[DEFAULT_FORWARD_CACHE_ALIAS]
 return render_to_response(template_name, RequestContext(request, {u'cache_hosts': cache_stats, u'cache_backend': cache_info[u'BACKEND'], u'title': _(u'Server Cache'), u'root_path': (settings.SITE_ROOT + u'admin/db/')}))

@ staff_member_required def cache_stats ( request , template_name = u'admin/cache_stats.html' ) : cache_stats = get_cache_stats ( ) cache_info = settings . CACHES [ DEFAULT_FORWARD_CACHE_ALIAS ] return render_to_response ( template_name , RequestContext ( request , { u'cache_hosts' : cache_stats , u'cache_backend' : cache_info [ u'BACKEND' ] , u'title' : _ ( u'Server Cache' ) , u'root_path' : ( settings . SITE_ROOT + u'admin/db/' ) } ) )
display statistics on the cache .