Zend framework 使用zend缓存整个html输出

Zend framework 使用zend缓存整个html输出,zend-framework,zend-cache,Zend Framework,Zend Cache,我试图使用Zend_缓存缓存布局脚本和控制器的操作脚本输出的所有内容,但它无法正常工作。我得到的只是 调试头:这是一个缓存页面 我得到了layout.phtml脚本和index.phtml脚本。两者都生成html代码。 在我的IndexController中,我将 $frontendOptions = array( 'lifetime' => 7, 'debug_header' => true, 'regexps' =>

我试图使用Zend_缓存缓存布局脚本和控制器的操作脚本输出的所有内容,但它无法正常工作。我得到的只是

调试头:这是一个缓存页面

我得到了layout.phtml脚本和index.phtml脚本。两者都生成html代码。 在我的IndexController中,我将

        $frontendOptions = array(
       'lifetime' => 7,
       'debug_header' => true,
       'regexps' => array(
           '^/$' => array('cache' => true),
           '^/index/' => array('cache' => true)
       )
    );

    $backendOptions = array('cache_dir' => '../application/cache/');

    $cache = Zend_Cache::factory('Page', 'File', $frontendOptions, $backendOptions);

    if(!$cache->start('mypage')) {
    }
如何让它工作?我希望html代码应该保存在缓存文件夹中。

查看本教程,它很短,而且我认为它比ZF文档更新