Skip to content

Commit

Permalink
Revert atomic directory creation.
Browse files Browse the repository at this point in the history
The error suppression has caused issues for a few users, so preventing
a potential race condition is less important.

Refs #11251
  • Loading branch information
markstory committed Sep 29, 2017
1 parent aeff92a commit 3b26a55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cache/Engine/FileEngine.php
Expand Up @@ -380,9 +380,9 @@ protected function _setKey($key, $createKey = false)
}
$dir = $this->_config['path'] . $groups;

// @codingStandardsIgnoreStart
@mkdir($dir, 0775, true);
// @codingStandardsIgnoreEnd
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}

$path = new SplFileInfo($dir . $key);

Expand Down

0 comments on commit 3b26a55

Please sign in to comment.