Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对叶子模板所做的更改未显示在浏览器中。我认为这是因为 Vapor 正在缓存模板。如何禁用缓存?
在蒸汽 2 中:
drop.view.shouldCache = false
对于蒸汽 1:
(drop.view as? LeafRenderer)?.stem.cache = nil