Django Book 翻译
菜单>:
TOC
返回
原文:
Do this by using a *decorator* , which is a wrapper around your view function that alters its behavior to use caching. The per-view cache decorator is called ``cache_page`` and is located in the ``django.views.decorators.cache`` module, for example:
翻译:
完成这项工作的方式是使用 *修饰器* ,其作用是包裹视图函数,将其行为转换为使用缓存。视图缓存修饰器称为 ``cache_page`` ,位于 ``django.views.decorators.cache`` 模块中,例如:
备注:
译者: