Skip to content

Commit

Permalink
fixed cached filename bug in File backend
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebf committed May 3, 2012
1 parent bc6f48a commit 0d2745b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/manifest.json
@@ -1,6 +1,7 @@
{
"title": "CacheCache",
"home": "../README.md",
"github": "maximebf/CacheCache",
"files": [
"usage.md",
"backends.md"
Expand Down
5 changes: 3 additions & 2 deletions lib/CacheCache/Backends/File.php
Expand Up @@ -135,8 +135,9 @@ public function filename($id)
$filename .= $this->fileExtension;
}

$filename = $dir . DIRECTORY_SEPARATOR . $filename;
$this->filenameCache[$id] = $filename;
return $dir . DIRECTORY_SEPARATOR . $filename;
return $filename;
}

/**
Expand Down Expand Up @@ -168,4 +169,4 @@ public function decode($data)
{
return unserialize($data);
}
}
}

0 comments on commit 0d2745b

Please sign in to comment.