I am trying to cache an entire page, bypassing all database and business
logic.

I put this code into my controller, but it doesn't work. No cache file is
saved in my cache directory. 

What a I doing wrong?

<?php
// getting a Zend_Cache_Frontend_Page object
$cache = Zend_Cache::factory(
    'Page',
    'File',
    array('lifetime' => 7200, 'debug_header' => true),
    array('cache_dir' => '../application/data/cache/')
);

// Cache the entire page!
$cache->start();
?>

The path should be correct. If I use Zend_Cache_Core it does save a cache
file into that directory. 
-- 
View this message in context: 
http://www.nabble.com/Newbie%3A-use-of-Zend_Cache_Frontend_Page-in-controller-tp20952852p20952852.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to