Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2008, 08:14 AM
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default Help with Zend_Cache_Frontend_Page

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-16-2008, 03:35 PM
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default

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;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-12-2008, 03:51 PM
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default

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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:20 AM.