简体   繁体   English

金字塔缓存

[英]Caching with Pyramid

How can I cache my views and templates with Pyramid? 如何使用Pyramid缓存视图和模板?

The docs talk about pyramid_beaker ( https://docs.pylonsproject.org/projects/pyramid_beaker/en/latest/ ) but the page doesn't actually show how to use the cache. 文档讨论了pyramid_beaker( https://docs.pylonsproject.org/projects/pyramid_beaker/zh-CN/latest/ ),但该页面实际上并未显示如何使用缓存。

The first result on google for "pyramid caching" is this - https://docs.pylonsproject.org/projects/pylons-webframework/en/latest/caching.html but it's about Pylons, there are lots of interesting things - caching of views, controller actions, templates and fragments, is it possible to do that in Pyramid, and how? 在谷歌的“金字塔缓存”的第一个结果是这样的- https://docs.pylonsproject.org/projects/pylons-webframework/en/latest/caching.html但它是关于塔,有很多有趣的事情-缓存视图,控制器操作,模板和片段,是否有可能在Pyramid中实现?如何?

You should install pyramid_beaker . 您应该安装pyramid_beaker

Then read the beaker documentation too. 然后也阅读烧杯文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM