PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
CacheLite - strange behaviour - possible bug?

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Caching
View previous topic :: View next topic  
Author Message
gmb2007



Joined: 04 Jun 2007
Posts: 1

PostPosted: Mon Jun 04, 2007 12:18 pm    Post subject: CacheLite - strange behaviour - possible bug? Reply with quote

hello,

we are using pear-lite (1.7.2) caching in a big online shop on php 4.4.3 with several cache groups.
Under certain circumstances it appears, that cache lite returns false instead of the cache entry even if it is not outdated. In our opinion this often appears, while flushing a cache group. But the cache entry is in a different cache group. Has any of you discovered similar behaviour?

While searching for a reason, I discovered the following code in Lite.php, _cleanDir method, line 593 et sqq.

[...]
case 'notingrou':
// START
if (!strpos($file2, $motif, 0)) {
// END
$result = ($result and ($this->_unlink($file2)));
}
break;

case 'callback_':
$func = substr($mode, 9, strlen($mode) - 9);
if ($func($file2, $group)) {
$result = ($result and ($this->_unlink($file2)));
}
break;

case 'ingroup':
default:
// START
if (strpos($file2, $motif, 0)) {
// END
$result = ($result and ($this->_unlink($file2)));
}
break;
[...]

Perhaps there is a problem with implicit type conversion and strpos function.
cf.: http://de.php.net/manual/de/function.strpos.php
Any conclusions? Wink

Thanks in advance!


regards
Bjoern
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Caching All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software