PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Caching » Cache_Lite » Bug #7337

Eternal caching doesn't work

Details

Submitted2006-04-07 15:53 UTC
Frombistory1 at hotmail dot com
StatusBogus
PackageCache_Lite
PHP Version5.1.1
OSWindows 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