1
0
Fork 0

Merge pull request #4357 from alcohol/warn-about-lack-of-cache

Warn if cache directory cannot be created, refs #1161
pull/4223/merge
Jordi Boggiano 2015-08-14 13:21:30 +01:00
commit a698a56e16
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class Cache
if (!is_dir($this->root)) {
if (!@mkdir($this->root, 0777, true)) {
$this->io->writeError('<warning>Cannot create cache directory ' . $this->root . ', proceeding without cache</warning>');
$this->enabled = false;
}
}