Hi
is there a way to cache layouts? for example most of my page element such as main menu are in main layout and actually it’s static so it would be good to cache it.
I could not find a straight explanation for this issue on documentation
thanks
Hi
is there a way to cache layouts? for example most of my page element such as main menu are in main layout and actually it’s static so it would be good to cache it.
I could not find a straight explanation for this issue on documentation
thanks
you could use "dynamic content cache": http://www.yiiframework.com/doc/guide/1.1/en/caching.dynamic
and apply it as a filter in all controllers like described here: http://www.yiiframework.com/doc/guide/1.1/en/caching.page
why on the earth you wanna cache your static contents