Skip to content
Browse files

Only delete cache files in cleanOld().

  • Loading branch information...
1 parent 5cd523e commit 55848915d5099e486501afe98119f754f73910c3 @gauthierm gauthierm committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/PEAR2/Cache/Lite/Main.php
View
1 src/PEAR2/Cache/Lite/Main.php
@@ -549,6 +549,7 @@ public function cleanOld()
foreach ($iterator as $path) {
if ( $path->isFile()
+ && strncmp($path->getFilename(), 'cache_', 6) === 0
&& $lifeTime > 0
&& time() - $path->getMTime() > $this->lifeTime
) {

0 comments on commit 5584891

Please sign in to comment.
Something went wrong with that request. Please try again.