Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.8.3

Request #6575 Cache_Lite_Function
Submitted: 2006-01-25 09:38 UTC
From: tomni Assigned: fab
Status: Closed Package: Cache_Lite
PHP Version: 5.1.2 OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2006-01-25 09:38 UTC] tomni
Description: ------------ When you cache a function with Cache_Lite_Function::call and the function returns null or false the default behauvior is that this results are getting cached as well. It would be nice to have an option where you could say that false or null results are not cached. Expected result: ---------------- Null or False are not going to be cached. Actual result: -------------- Cache return even null or false.

Comments

 [2006-01-28 13:55 UTC] fab at php dot net
do you try to set the 'automaticSerialization' option to true in the Cache_Lite_Function constructor options array ?
 [2006-01-28 14:08 UTC] tomni
no. the only options that I used where: $options = array( 'cacheDir' => ALEX_BASE . '/tmp/function/', 'lifeTime' => (60 * 60 * 24 * 7) ); But I tried it right now with $options = array( 'cacheDir' => BASE . '/tmp/function/', 'lifeTime' => (60 * 60 * 24 * 7), 'automaticSerialization' => true ); and it caches the empty (false) result as well.
 [2006-01-29 00:16 UTC] fab at php dot net
sorry I read your first post too fast :( So my last question was not really relevant.
 [2006-02-04 18:38 UTC] fab at php dot net
fixed in CVS