わかりました、ここに問題があります:
$frontendOptions = array(
'lifetime' => 7200,
'debug_header' => true, // for debugging, but it doesn't work...
'regexps' => array(
// Cache the static pages
'^/pages/' => array('cache' => true),
)
);
$backendOptions = $config->cache->backOptions->toArray();
// getting a Zend_Cache_Frontend_Page object
require_once 'Zend/Cache.php';
$cache = Zend_Cache::factory('Page',
$config->cache->backend,
$frontendOptions,
$backendOptions);
$cache->start();
これは何もしません。ページの読み込み時間はまったく同じで、に示されているフォルダ$backendOptions
は空です。私は何が間違っているのですか?
ちなみに:$config->cache->backend
読み取ります"file"
。