Browse Source

Prefix redis database connection by default to mitigate multiple sites on the same server potentially sharing the same queued jobs

Jordan Hall 5 years ago
parent
commit
c8bc79e94e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      config/database.php

+ 1 - 0
config/database.php

@@ -117,6 +117,7 @@ return [
 
         'options' => [
             'cluster' => env('REDIS_CLUSTER', 'predis'),
+            'prefix' => str_slug(env('APP_NAME', 'laravel'), '_').'_database',
         ],
 
         'default' => [