Cache_Lite and class methods
| From: | Rodrigo Alvarez | Date: | Tue, 14 Jun 2005 12:12:05 +0000 |
| Subject: | Cache_Lite and class methods | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-19614@lists.php.net to get a copy of this message | ||
Hi PEARs,
I'm usign this within a class:
function getApplications()
{
// Cache_Lite will raise two Notices
return @$this->_cache->call(array(&$this,'_getApplications'));
}
This is a wrapper between _getApplications and Cache_Lite.
Cache_Lite is not using the cached output of the function, since it rebuilds it on each request:
cache_7b181b55b55aee36ad5e7bd9d5a091ec_766b30059a17a822b25c5abd8aac9307
cache_7b181b55b55aee36ad5e7bd9d5a091ec_7766bec07fc213a0168d3cacfd1b0dd3
cache_7b181b55b55aee36ad5e7bd9d5a091ec_b701c6b9cedf9f4e2b0b48a2e4e14ea2
Those are from subsequent calls to this function. How can I fix this?
Thanks,
Rodrigo.