Use xxh3 for generating hash keys instead of md5 as it offers better performance

This commit is contained in:
Jan Böhmer 2026-01-03 00:55:49 +01:00
parent 2f580c92d1
commit 641c8388c1
3 changed files with 5 additions and 5 deletions

View file

@ -139,7 +139,7 @@ class FileTypeFilterTools
{
$filter = trim($filter);
return $this->cache->get('filter_exts_'.md5($filter), function (ItemInterface $item) use ($filter) {
return $this->cache->get('filter_exts_'.hash('xxh3', $filter), function (ItemInterface $item) use ($filter) {
$elements = explode(',', $filter);
$extensions = [];