Skip to content

Commit 4b7b40a

Browse files
kitroPropaganistas
andauthored
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 <[email protected]>
1 parent dbd1510 commit 4b7b40a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/disposable-email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
'cache' => [
6565
'enabled' => true,
6666
'store' => 'default',
67-
'key' => 'disposable_email.domains',
67+
'key' => 'disposable_email:domains',
6868
],
6969

7070
];

0 commit comments

Comments
 (0)