From 67cfa48cf288007b56e7f76601b32c7629b817dc Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 11 Jun 2024 14:34:18 +0200 Subject: [PATCH] Cache: md5 replaced with xxHash --- src/Caching/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Caching/Cache.php b/src/Caching/Cache.php index 5d680d2..c458afc 100644 --- a/src/Caching/Cache.php +++ b/src/Caching/Cache.php @@ -393,7 +393,7 @@ public function start($key): ?OutputHelper */ protected function generateKey($key): string { - return $this->namespace . md5(is_scalar($key) ? (string) $key : serialize($key)); + return $this->namespace . hash('xxh128', is_scalar($key) ? (string) $key : serialize($key)); }