def aview(request): if request.method=='get': return cached_page return no_cache
对于同一个url, 当请求方式是get的时候, 启用cache, 否则按正常程序渲染返回.
阅读了下文档, 好像没有办法