mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Derp fix
This commit is contained in:
parent
4549c51959
commit
e4d5c53d69
@ -41,10 +41,8 @@ class ConfigServiceProvider extends ServiceProvider
|
||||
}
|
||||
|
||||
$this->app->terminating(function () use ($cache, $path) {
|
||||
if ($this->app->setting->stale()) {
|
||||
if ($this->app->setting->stale() || $cache === false) {
|
||||
$this->app->files->put($path, '<?php return '.var_export($this->app->setting->all(), true).';'.PHP_EOL);
|
||||
} elseif ($cache === false) {
|
||||
$this->app->files->put($path, '<?php return '.var_export([], true).';'.PHP_EOL);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user