Configure COutputCache parameters globally?

Hi all!

How can i set the parameters of the COutputCache globally?

I want to set these parameters:

varyByRoute, duration

Have you tried to configure it in your base Controller (/compontens/Controller.php)? You can add a filters() method there.

I did not test it but…

as the COutputCache is a child class of CWidget it could be configured by using CWidgetFactory - http://www.yiiframework.com/doc/api/1.1/CWidgetFactory