We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5413285 commit 1542bb2Copy full SHA for 1542bb2
src/Bridges/CacheDI/CacheExtension.php
@@ -48,10 +48,9 @@ public function loadConfiguration()
48
49
public function afterCompile(Nette\PhpGenerator\ClassType $class)
50
{
51
- $class->methods['initialize']->addBody(
52
- 'Nette\Caching\Storages\FileStorage::$useDirectories = ?;',
53
- array($this->checkTempDir($this->tempDir . '/cache'))
54
- );
+ if (!$this->checkTempDir($this->tempDir . '/cache')) {
+ $class->methods['initialize']->addBody('Nette\Caching\Storages\FileStorage::$useDirectories = FALSE;');
+ }
55
}
56
57
0 commit comments