开发者

symfony: Own cache class for config cache

开发者 https://www.devze.com 2023-02-07 14:06 出处:网络
I was just able to write my own view cache class and activate it ove开发者_运维知识库r factories.yml.

I was just able to write my own view cache class and activate it ove开发者_运维知识库r factories.yml. Now I'm wondering how I can do the same for the config cache.

Edit: Fist I thought symfony will automatically use the caching method I choosed for view cache, but it doesn't.

Solution:

It's not very clean but it works. I extended the sfApplicationConfiguration and replaced it. Then I overwrote the method getConfigCache(). Here I replaced sfConfigCache with my sfConfigBlobCache.


Check out this chapter.

0

精彩评论

暂无评论...
验证码 换一张
取 消