modifying cache file engine, to match file class changes.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7830 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
AD7six 2008-11-05 19:32:45 +00:00
parent 22143dbbed
commit 0ed0eea73b

View file

@ -243,7 +243,10 @@ class FileEngine extends CacheEngine {
*/
function __setKey($key) {
$this->__File->Folder->cd($this->settings['path']);
$this->__File->name = $key;
if ($key !== $this->__File->name) {
$this->__File->name = $key;
$this->__File->path = null;
}
if (!$this->__File->Folder->inPath($this->__File->pwd(), true)) {
return false;
}