Welcome Guest, Not a member yet? Register   Sign In
Disabling the cache.
#7

[eluser]BaRzO[/eluser]
hi all
i am getting same Severity: Warning !!!
My config.php line 209
Code:
$config['cache_path'] = '';
using linux
maybe we should put a on/off switch for cache ?
Code:
$config['cache_output'] = false;
$config['cache_path'] = '';

i have checked Output library there is

Code:
function _write_cache($output)

    {

        $CI =& get_instance();    

<<< Check here if cache is enabled do cache buzz or Not >>>

        $path = $CI->config->item('cache_path');

    

        $cache_path = ($path == '') ? BASEPATH.'cache/' : $path;

        

        if ( ! is_dir($cache_path) OR ! is_really_writable($cache_path))

        {

            return;

        }

        

        $uri =    $CI->config->item('base_url').

                $CI->config->item('index_page').

                $CI->uri->uri_string();

        

        $cache_path .= md5($uri);



        if ( ! $fp = @fopen($cache_path, 'wb'))

        {

            log_message('error', "Unable to write cache file: ".$cache_path);

            return;

        }

        

        $expire = time() + ($this->cache_expiration * 60);

        

        flock($fp, LOCK_EX);

        fwrite($fp, $expire.'TS---&gt;'.$output);

        flock($fp, LOCK_UN);

        fclose($fp);

        @chmod($cache_path, DIR_WRITE_MODE);



        log_message('debug', "Cache file written: ".$cache_path);

    }



    // --------------------------------------------------------------------

this line never come up
log_message('error', "Unable to write cache file: ".$cache_path);


any idea ??


Messages In This Thread
Disabling the cache. - by El Forum - 05-19-2008, 09:45 AM
Disabling the cache. - by El Forum - 05-19-2008, 11:38 AM
Disabling the cache. - by El Forum - 05-19-2008, 12:00 PM
Disabling the cache. - by El Forum - 05-20-2008, 01:16 AM
Disabling the cache. - by El Forum - 05-20-2008, 03:05 AM
Disabling the cache. - by El Forum - 07-29-2008, 05:06 AM
Disabling the cache. - by El Forum - 08-19-2008, 09:33 PM
Disabling the cache. - by El Forum - 08-21-2008, 03:49 AM
Disabling the cache. - by El Forum - 08-21-2008, 12:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB