开发者

How to disable Dwoo cache?

开发者 https://www.devze.com 2022-12-30 09:59 出处:网络
I want to disable the cache in the template system Dwoo. Just for my dev mode. But then I tried to invok开发者_运维知识库e setcache () or modify Dwoo classes and nothing works.

I want to disable the cache in the template system Dwoo.

Just for my dev mode.

But then I tried to invok开发者_运维知识库e setcache () or modify Dwoo classes and nothing works.

Someone has an idea?

Thank you


Which cache are you talking about?

Dwoo has a compiled templates cache (by default dwoo/compiled), this is regenerated automatically based on filemtime() and you don't need to take care of it.

Then there is the output cache, by default it's deactivated, so if you have problems with that you should handle it in your application logic, and force the cacheLength to 0 in development mode.


Now it is possible to do a forceCompilation(); on any Dwoo_Template_File

0

精彩评论

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