Home » Caching » Cache_Lite » Bug #7337
Eternal caching doesn't work
Details
| Submitted | 2006-04-07 15:53 UTC |
|---|---|
| From | bistory1 at hotmail dot com |
| Status | Bogus |
| Package | Cache_Lite |
| PHP Version | 5.1.1 |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2006-04-07 15:53 UTC] bistory1 at hotmail dot com
Description:
------------
When lifeTime is set to 0, cache isn't eternally cached, file is modified on each load (I tested it on windows but it seems linux make the same thing)
Test script:
---------------
$c=new Cache_Lite(array('lifeTime'=>0));
if($data=$c->get('faq'))
{
echo $data;
}
else
{
//make $output
$c->save($output);
}
[2006-04-07 15:58 UTC] bistory1 at hotmail dot com
Tested on fedora, same problem ;)
[2006-04-07 17:01 UTC] fab at php dot net
not a "code" bug, you have to use :
array(
'lifeTime' => null
);
to get "eternal caching"
maybe there is a documentation problem ?
[2006-04-07 17:01 UTC] fab at php dot net
see last comment