Part of the EllisLab Network
   
 
Cache Problem
Posted: 02 December 2008 12:41 PM   [ Ignore ]  
Summer Student
Total Posts:  3
Joined  12-02-2008

If I set a custom cache path in the config.php file ($config[‘cache_path’]) codeIgniter ignores the $config[‘enable_cache’]directive.

Profile
 
 
Posted: 02 December 2008 01:18 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  3
Joined  12-02-2008

I solved my problem editing the method cache in codeigniter/libraries/output.php.

function cache($time)
{
  $CI 
=& get_instance();    
  
$enable_cache $CI->config->item('enable_cache');
  
$this->cache_expiration = ( 
    (
is_numeric($time) && $enable_cache) ? 
    
$time 
    
0        
  
);

I have no idea if this is the best place but at least it made some sence.
Tiago

Profile