Doc #9807 [NEW]: Problem with Test code for Cache_Lite

From: Date: Fri, 12 Jan 2007 04:32:54 +0000
Subject: Doc #9807 [NEW]: Problem with Test code for Cache_Lite
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9278@lists.php.net to get a copy of this message
From: shinji_ikari at mail dot com Operating system: Windows XP Package version: PHP version: Irrelevant Package: Documentation Bug Type: Documentation Problem Bug description: Problem with Test code for Cache_Lite Description: ------------ Minor doc correction In the first example (simple example) in: http://pear.php.net/manual/en/package.caching.cache-lite.intro.php The following is incorrect: // (...) $Cache_Lite->save($data); } What I believe the programmer meant was: // (...) $Cache_Lite->save($id); } If you leave it as it is ($data), you always hit the cache since nothing is ever saved to the cached file. Actual result: -------------- The cache file is generated but due to the bug nothing is ever saved to the cache file. -- Edit bug report at http://pear.php.net/bugs/bug.php?id=9807&edit=1 --

« previous php.pear.doc (#9278) next »