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.
我只能编写自己的视图缓存类并通过 factory.yml 激活它。现在我想知道如何对配置缓存做同样的事情。
编辑:拳头我认为symfony会自动使用我为视图缓存选择的缓存方法,但事实并非如此。
解决方案:
它不是很干净,但它可以工作。我扩展了 sfApplicationConfiguration 并替换了它。然后我覆盖了getConfigCache()方法。在这里,我用我的 sfConfigBlobCache 替换了 sfConfigCache。
看看这一章。