Skip to content

Commit d4eed21

Browse files
committed
CacheExtension: creates directory %tempDir%/cache
1 parent e1a38c8 commit d4eed21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Bridges/CacheDI/CacheExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ public function afterCompile(Nette\PhpGenerator\ClassType $class)
6565

6666
private function checkTempDir($dir)
6767
{
68+
@mkdir($dir); // @ - directory may exists
69+
6870
// checks whether directory is writable
6971
$uniq = uniqid('_', TRUE);
7072
if (!@mkdir("$dir/$uniq")) { // @ - is escalated to exception

0 commit comments

Comments
 (0)