mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
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:
parent
1d3ac71ac1
commit
1a0e5ea237
4 changed files with 10 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue