Skip to content

Commit af241ab

Browse files
committed
Update config.dist.php
1 parent 84796ce commit af241ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config.dist.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@
107107
],
108108
/*'gz_magento' => [
109109
'view' => static function (string $value): ?string {
110-
// https://github.com/colinmollenhour/Cm_Cache_Backend_Redis/blob/master/Cm/Cache/Backend/Redis.php (_encodeData method)
111-
$value = str_starts_with($value, "gz:\x1f\x8b") ? substr($value, 5);
110+
$prefix = ':gz:';
111+
$value = str_starts_with($value, $prefix) ? substr($value, strlen($prefix)) : $value;
112112
113113
return @gzuncompress($value) !== false ? gzuncompress($value) : null;
114114
},
115-
'save' => static fn (string $value): string => "gz:\x1f\x8b".gzcompress($value),
115+
'save' => static fn (string $value): string => ':gz:'.gzcompress($value),
116116
],*/
117117
],
118118
// Formatting functions, it runs after decoding

0 commit comments

Comments
 (0)