开发者

symfony: Own cache class for config cache

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜