Browse Source

Revert atomic directory creation.

The error suppression has caused issues for a few users, so preventing
a potential race condition is less important.

Refs #11251
mark_story 8 years ago
parent
commit
3b26a55b14
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Cache/Engine/FileEngine.php

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

@@ -380,9 +380,9 @@ class FileEngine extends CacheEngine
         }
         $dir = $this->_config['path'] . $groups;
 
-        // @codingStandardsIgnoreStart
-        @mkdir($dir, 0775, true);
-        // @codingStandardsIgnoreEnd
+        if (!is_dir($dir)) {
+            mkdir($dir, 0775, true);
+        }
 
         $path = new SplFileInfo($dir . $key);