 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
gmb2007
Joined: 04 Jun 2007 Posts: 1
|
Posted: Mon Jun 04, 2007 12:18 pm Post subject: CacheLite - strange behaviour - possible bug? |
|
|
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?
Thanks in advance!
regards
Bjoern |
|
| Back to top |
|
 |
|
|
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
|
|