File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments