Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-22-2008, 12:21 AM
Junior Member
 
Join Date: Feb 2008
Posts: 17
Default 'cache' => false on a module?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:37 PM.