We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84796ce commit af241abCopy full SHA for af241ab
1 file changed
config.dist.php
@@ -107,12 +107,12 @@
107
],
108
/*'gz_magento' => [
109
'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);
+ $prefix = ':gz:';
+ $value = str_starts_with($value, $prefix) ? substr($value, strlen($prefix)) : $value;
112
113
return @gzuncompress($value) !== false ? gzuncompress($value) : null;
114
},
115
- 'save' => static fn (string $value): string => "gz:\x1f\x8b".gzcompress($value),
+ 'save' => static fn (string $value): string => ':gz:'.gzcompress($value),
116
],*/
117
118
// Formatting functions, it runs after decoding
0 commit comments