From 4b7b40a60adc975f08fc5b83615c013b25337513 Mon Sep 17 00:00:00 2001 From: Nordine Charafi Date: Sun, 13 Mar 2022 15:54:21 +0100 Subject: [PATCH] Fix unserialize() error when using Redis as cache (#30) * Fix unserialize(): Error at offset when using Redis as cache Using the key `disposable_email.domains` in Redis throw an error `unserialize(): Error at offset XYZ of XYZ bytes`, Redis cannot unserialize keys with dot notation. I think is better to replace the key with underscore so it works in most cache drivers. * Update disposable-email.php Co-authored-by: Propaganistas --- config/disposable-email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/disposable-email.php b/config/disposable-email.php index 3537d7f..7695fc6 100644 --- a/config/disposable-email.php +++ b/config/disposable-email.php @@ -64,7 +64,7 @@ 'cache' => [ 'enabled' => true, 'store' => 'default', - 'key' => 'disposable_email.domains', + 'key' => 'disposable_email:domains', ], ];