Fatal error: Call to a member function getUniqueId() on a non-object in C:\Users\Project Manager\workspace\f\yiiext\framework\web\widgets\COutputCache.php on line 265
I think this solution with flushing the buffer ISN’T the good one. If I start flushing the buffer, I can’t modify header (e.g. cookies, redirection, etc)
Please refer to the guide on how to use fragment caching. Basically, you should use $this->controller->beginCache() instead of CBaseController::beginCache(). The latter calls the method in a static way, which is incorrect.