What should be the workflow for caching views containing flashSession? I think we have to disable the cache if there is a flashSession.
I think this code behaves well:
if (!$this->flashSession->has()) { if ($this->request->isGet()) { $this->view->cache( array( "lifetime" => 3600, "key" => $cacheKey ) ); } }