Home » Caching » Cache_Lite » Bug #4957
null data on save method
Details
| Submitted | 2005-08-01 01:58 UTC |
|---|---|
| From | karlus at karlus dot net |
| Status | Bogus |
| Package | Cache_Lite |
| PHP Version | 4.4.1 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-08-01 01:58 UTC] karlus at karlus dot net
Description:
------------
If the data you're trying to 'cache' is 0 the get method will not function. The save method will create the cache file put the get method will fail to load the cache.
Test script:
---------------
$cache = new Cache_Lite($cacheOptions);
if ($data = $cache->get('cacheId')) {
print "cache";
} else {
print "live";
$items = "0";
print $cache->save($items, 'cacheId');
}
?>
Expected result:
----------------
I would expecto to see 'live' in the first run and 'cache' in the second... i allways see 'live'.