Hi,
Why model's caching does not work in controller initialize()
method?
I've a BaseController as follow:
class Base extends PhController
{
/**
* Initializes the controller
*/
public function initialize()
{
$this->view->setVar('categories', Categories::find(array(
"cache" => array("key" => "categories")
))->toArray());
}
...
}
But in first request categories
array is empty and if I fills correctly from cache.
cache file also creates in first request dispatch but resultset in empty.
Sorry about my bad english!
Thanks