From 740f603bbe3f5fdf6fa46b585b09ea0e43c938c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Tue, 26 Aug 2025 14:05:05 +0200 Subject: [PATCH] Fix FLEXIAPI-372 Remove SESSION_DRIVER and CACHE_DRIVER and enforce them to file --- CHANGELOG.md | 1 + RELEASE.md | 1 + flexiapi/.env.example | 2 -- flexiapi/config/cache.php | 2 +- flexiapi/config/session.php | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c55521..d83cc58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ v2.0 - Fix FLEXIAPI-363 Send the Redis publish event when the externalAccount is deleted to ping the Flexisip B2BUA - Fix FLEXIAPI-364 Fix a faulty redirection in the ExternalAccount controller - Fix FLEXIAPI-361 Prepare the 2.0 release +- Fix FLEXIAPI-372 Remove SESSION_DRIVER and CACHE_DRIVER and enforce them to file v1.6 ---- diff --git a/RELEASE.md b/RELEASE.md index 6d5e0ff..34d0fba 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). - ACCOUNT_PROVISIONING_USE_X_LINPHONE_PROVISIONING_HEADER - **Complete and reorganize the Markdown documentation** - **Refactor the emails templates** All the emails were modernized and are now generated in HTML +- **Enforce SESSION_DRIVER and CACHE_DRIVER to file** They can be removed from your DotEnv file as well. ### Removed diff --git a/flexiapi/.env.example b/flexiapi/.env.example index 3b13ab9..27acc3a 100644 --- a/flexiapi/.env.example +++ b/flexiapi/.env.example @@ -60,9 +60,7 @@ REDIS_DB= # Ensure that you have the proper SELinux configuration to write in the storage directory, see the README LOG_CHANNEL=stack BROADCAST_DRIVER=log -CACHE_DRIVER=file QUEUE_CONNECTION=sync -SESSION_DRIVER=file SESSION_LIFETIME=120 # SMTP and emails diff --git a/flexiapi/config/cache.php b/flexiapi/config/cache.php index 46751e6..7bee733 100644 --- a/flexiapi/config/cache.php +++ b/flexiapi/config/cache.php @@ -18,7 +18,7 @@ return [ | */ - 'default' => env('CACHE_DRIVER', 'file'), + 'default' => 'file', /* |-------------------------------------------------------------------------- diff --git a/flexiapi/config/session.php b/flexiapi/config/session.php index 290fa69..b28a941 100644 --- a/flexiapi/config/session.php +++ b/flexiapi/config/session.php @@ -18,7 +18,7 @@ return [ | */ - 'driver' => env('SESSION_DRIVER', 'cookie'), + 'driver' => 'file', /* |--------------------------------------------------------------------------