Browse Source

When using system tmp dir, add subfolder to avoid permission issues

Ceeram 11 years ago
parent
commit
41fa40d2ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Cache/Engine/FileEngine.php

+ 1 - 1
src/Cache/Engine/FileEngine.php

@@ -88,7 +88,7 @@ class FileEngine extends CacheEngine
         parent::init($config);
 
         if ($this->_config['path'] === null) {
-            $this->_config['path'] = sys_get_temp_dir();
+            $this->_config['path'] = sys_get_temp_dir() . DS . 'cake_cache' . DS;
         }
         if (DS === '\\') {
             $this->_config['isWindows'] = true;