Skip to content

Commit

Permalink
Give the cache key a default value in case it's missed in the .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Sep 12, 2017
1 parent a5bb556 commit 6149828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/app.php
Expand Up @@ -38,7 +38,7 @@
$dotenv = new Dotenv\Dotenv(__DIR__.'/../');
$dotenv->load();
$_ENV['BIRDSEYE_ENV_FILE'] = '.env';
$_ENV['BIRDSEYE_CACHE_KEY'] = env('BIRDSEYE_CACHE_KEY');
$_ENV['BIRDSEYE_CACHE_KEY'] = env('BIRDSEYE_CACHE_KEY', 'SomeCacheKey');
}

if( php_sapi_name() !== 'cli' && ( !isset( $_ENV['BIRDSEYE_CACHE_KEY'] ) || !strlen( $_ENV['BIRDSEYE_CACHE_KEY'] ) ) ) {
Expand Down

0 comments on commit 6149828

Please sign in to comment.