phemellc / yii2-settings

Yii2 Settings Module
Other
151 stars 74 forks source link

remove frontCache #47

Open schmunk42 opened 8 years ago

schmunk42 commented 8 years ago

Maybe I am overlooking something, but is frontCache in use at all? I looked through the code and found only cache to hold values.

Findings for frontCache:

bildschirmfoto 2016-04-14 um 22 06 35
arisk commented 8 years ago

This was added because lots of people use the advanced app template which contains basically 2 applications running with separate cache components. #1 has a few more details. I don't like the solution but it seemed like the best thing to do at the time. If you have any better ideas they are always welcome.

schmunk42 commented 8 years ago

A global event would be nice, I think.

An event is thrown, when cache is cleared and you can configure the corresponding action (clear frontend cache) in your application config. Very flexible and no need to handle any additional cache components in the extension.