|
|||
|
I'm having troubles to work cache frontend page, core cache seems to work ok for me, but when I try to use page cache, it doesn't cached nothing. It only caches displays when I put some "echo" into the controller, the view's content it's ignored. The files are created in tmp, but they don't have the html data, only when I write some echo in the controller I get something to show. There is some kind of trick to work page cache?
Thanks a lot David |
|
|||
|
I found a solution...I don't like it too much, but it works for me
$this->_helper->viewRenderer->setNoRender(); $cache->start(); $this->view->name = ... .. .. $reponseHTML = $this->view->render('test/index.phtml'); echo $reponseHTML; |
|
|||
|
disableOutputBuffering must be true to work Zend_Cache_Frontend_Page.
Put something like that - $front->setParam('disableOutputBuffering', true); - in your bootstrap. I don't know why this is not documented in any place... |
![]() |
| Thread Tools | |
| Display Modes | |
|
|