Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.1.4
-
Fix Version/s: 0.1.5
-
Component/s: Zend_Cache
-
Labels:None
Description
EXAMPLES.txt says concerning "Output" frontend:
if ($cache->start($id)) {
// cache is not hit !
// Output you want to cache
for ($i=0;$i<10000;$i++) {
echo($i);
}
// store "captured" output into cache
$cache->end();
}
But Zend_Cache_Frontend_Output::start() method returns true when cache hit and false otherwise, so the function or example should be changed.
test script