Django Book 翻译
菜单>:
TOC
返回
原文:
In Django, use the ``cache_control`` view decorator to specify these cache parameters. In this example, ``cache_control`` tells caches to revalidate the cache on every access and to store cached versions for, at most, 3,600 seconds:
翻译:
在 Django 中,可使用 ``cache_control`` 视图修饰器指定这些缓存参数。在本例中, ``cache_control`` 告诉缓存对每次访问都重新验证缓存并在最长 3600 秒内保存所缓存版本:
备注:
译者: