Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No one used this method. It's been broken in PEAR::Cache_Lite for years.

  • Loading branch information...
commit b8134b8905a3a947286a4916975f3fc4a4d6147e 1 parent 5b43b64
@gauthierm gauthierm authored
Showing with 0 additions and 22 deletions.
  1. +0 −22 src/PEAR2/Cache/Lite/Main.php
View
22 src/PEAR2/Cache/Lite/Main.php
@@ -557,28 +557,6 @@ function($filePath) use ($lifeTime, $unlink)
return $this;
}
- public function cleanNotInGroup($group)
- {
- if ($this->fileNameProtection) {
- $motif = ($group) ? 'cache_' . md5($group) . '_' : 'cache_';
- } else {
- $motif = ($group) ? 'cache_' . $group . '_' : 'cache_';
- }
-
- $unlink = $this->unlink;
-
- $this->applyDir(
- function($filePath) use ($motif, $unlink)
- {
- $fileName = basename($filePath);
- if (strncmp($fileName, $motif, strlen($motif)) !== 0) {
- $unlink($filePath);
- }
- },
- $this->cacheDir
- );
- }
-
public function extendLife($id, $group = 'default')
{
$filePath = $this->getFilePath($id, $group);
Please sign in to comment.
Something went wrong with that request. Please try again.