Skip to content

Commit 148f029

Browse files
authored
Uses SCHEDULE_CACHE_STORE (#49492)
1 parent 2acd8b8 commit 148f029

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Illuminate/Foundation/Console/Kernel.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,13 @@ protected function scheduleTimezone()
302302
/**
303303
* Get the name of the cache store that should manage scheduling mutexes.
304304
*
305-
* @return string
305+
* @return string|null
306306
*/
307307
protected function scheduleCache()
308308
{
309-
return $this->app['config']->get('cache.schedule_store', Env::get('SCHEDULE_CACHE_DRIVER'));
309+
return $this->app['config']->get('cache.schedule_store', Env::get('SCHEDULE_CACHE_DRIVER', function () {
310+
return Env::get('SCHEDULE_CACHE_STORE');
311+
}));
310312
}
311313

312314
/**

0 commit comments

Comments
 (0)