Hi (sorry for bad english)
I think i've found a bug in the pCache.class.php.
The problem is when i'm doing a $MyCache->remove($id);, it clears the whole index.db instead of removing the object id.
After digging in the code, I think I've found the problem:
pCache.cache.php (Line 95)
This line
Code:
$Expiry = isset($Settings["Expiry"]) ? $Settings["Expiry"] : -(24*60*60);
$TS = time()-$Expiry;
Should be :
Code:
$Expiry = isset($Settings["Expiry"]) ? $Settings["Expiry"] : (24*60*120);
$TS = time()-$Expiry;
- + - = +!
Demo:
Code:
$a = 2;
$b = -(1);
$c = $a-$b;
echo $c; //3!
Am I right?