Skip to content

Commit c8bc79e

Browse files
authored
Prefix redis database connection by default to mitigate multiple sites on the same server potentially sharing the same queued jobs
1 parent ae44ee0 commit c8bc79e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117

118118
'options' => [
119119
'cluster' => env('REDIS_CLUSTER', 'predis'),
120+
'prefix' => str_slug(env('APP_NAME', 'laravel'), '_').'_database',
120121
],
121122

122123
'default' => [

0 commit comments

Comments
 (0)