Welcome Guest, Not a member yet? Register   Sign In
Cacheing not working
#2

[eluser]Unknown[/eluser]
Line 160 in /system/libraries/Cache/drivers/Cache_file.php looks like it's the problem:

Lines 160-171 shown below:
Code:
$data = $data['data'];
            $mtime = filemtime($this->_cache_path.$id);

            if ( ! isset($data['ttl']))
            {
                return FALSE;
            }

            return array(
                'expire'     => $mtime + $data['ttl'],
                'mtime'        => $mtime
            );

If I do a print_r of $data, it contains ['ttl']. However assigning $data = $data['data'] does not work here, as it loses the metadata. So the function can never return the array.

Line 160 should be removed / commented out, and then it'll work.


Messages In This Thread
Cacheing not working - by El Forum - 04-22-2011, 09:37 AM
Cacheing not working - by El Forum - 07-08-2011, 03:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB