1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-26 12:52:28 +02:00

Add session specific redis cache

This commit is contained in:
Dane Everitt 2018-03-06 22:58:38 -06:00
parent 4964d294f6
commit 4952a27903
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
4 changed files with 16 additions and 1 deletions

View File

@ -10,6 +10,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
### Changed
* Panel now throws proper 504: Gateway Timeout errors on server listing when daemon is offline.
* Sessions handled through redis now use a seperate database (default `1`) to store session database to avoid logging users out when flushing the cache.
## v0.7.5 (Derelict Dermodactylus)
### Fixed

View File

@ -70,6 +70,12 @@ return [
'driver' => 'redis',
'connection' => 'default',
],
'sessions' => [
'driver' => env('SESSION_DRIVER', 'database'),
'table' => 'sessions',
'connection' => env('SESSION_DRIVER') === 'redis' ? 'sessions' : null,
],
],
/*

View File

@ -71,11 +71,19 @@ return [
'redis' => [
'client' => 'predis',
'default' => [
'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DATBASE', 0),
],
'sessions' => [
'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DATBASE_SESSIONS', 1),
],
],
];

View File

@ -69,7 +69,7 @@ return [
|
*/
'connection' => null,
'connection' => env('SESSION_DRIVER') === 'redis' ? 'sessions' : null,
/*
|--------------------------------------------------------------------------