Switched from md5 to a faster xxHash hash function (#921)

* Support for IDN domains

* Announcer support for answering stopped events

* Update init_tr.php

* Informing message

* Update announce.php

* Switched from md5 to a faster xxHash hash function

---------

Co-authored-by: Roman Kelesidis <roman25052006.kelesh@gmail.com>
This commit is contained in:
Constantine Kovalensky 2023-10-01 21:36:51 +04:00 committed by GitHub
commit 1a0e5ea237
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 14 deletions

View file

@ -131,7 +131,7 @@ $replace_in_parent = [
'last_topic_id'
];
$cache_name = 'index_sql_' . md5($sql);
$cache_name = 'index_sql_' . hash('xxh128', $sql);
if (!$cat_forums = CACHE('bb_cache')->get($cache_name)) {
$cat_forums = [];
foreach (DB()->fetch_rowset($sql) as $row) {