From 5f1c4e1c55dbf58f7972cd44dbf39e9305f2dbd4 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Fri, 7 Oct 2016 23:20:32 +0200 Subject: [PATCH] [FileCache] Implement recursive directory creation --- caches/FileCache.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/caches/FileCache.php b/caches/FileCache.php index 5f74652d..fc152b1a 100644 --- a/caches/FileCache.php +++ b/caches/FileCache.php @@ -73,10 +73,9 @@ class FileCache extends CacheAbstract { protected function getCachePath(){ $cacheDir = __DIR__ . '/../cache/'; // FIXME : configuration ? - // FIXME : implement recursive dir creation if(!is_dir($cacheDir)){ - mkdir($cacheDir,0755); - chmod($cacheDir,0755); + mkdir($cacheDir, 0755, true); + chmod($cacheDir, 0755); } return $cacheDir;