Why would the following code still be caching my admin module? Am I not using the regexps properly?
Code:
/*
* OMG Zend Cache!!!
*/
require_once 'Zend/Cache.php';
$frontendOptions = array(
'lifetime' => 7200,
'debug_header' => true, // for debugging
'regexps' => array( '^/admin/' => array('cache' => false),
'^/$' => array('cache' => true,
'cache_with_session_variables' => true,
'cache_with_cookie_variables' => true )
)
);
$backendOptions = array(
'cache_dir' => '../application/cache/',
'read_control' => true,
'read_control_type' => 'adler32',
'hashed_directory_level' => 2,
'file_name_prefix' => '_cache'
);
// getting a Zend_Cache_Frontend_Page object
$cache = Zend_Cache::factory('Page', 'File', $frontendOptions, $backendOptions);
$cache->start();
EDIT: Sorry for two quick posts, but they are separate issues