I am trying to implement full static page caching in my Zend Framework application. Using the Static backend in conjunction with the Capture interface, entire pages can be cached and served by a .htaccess redirect in the future until the cache is deleted / regenerated. For reference, I used the section in Zend_Cache_Backend_Static in the manual, as well as some additional information provided by the author of the class.
According to the example, I set up the cache directories (static HTML files) and their tags, and I added the line:
$this->_helper->cache(array('index'), array('allentries'));
to one of my controllers.
An HTML file is created in the right place, and tags are also created as expected. However, the HTMl file is always empty - 0 bytes.
I cannot diagnose the problem, and I cannot find any information on the Internet to help. As far as I can see, there are some problems with the output buffering callback that get the output from the Zend application, but I donβt know exactly what is wrong.
Can someone shed some light on the problem?
source
share