From 28413cc9ef7492b6f33c66f686b738aecddbd3b6 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 29 Jul 2025 19:28:17 +0300 Subject: [PATCH] Update thanks.php --- library/ajax/thanks.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/library/ajax/thanks.php b/library/ajax/thanks.php index 5eb805de4..76425ba49 100644 --- a/library/ajax/thanks.php +++ b/library/ajax/thanks.php @@ -107,13 +107,7 @@ switch ($mode) { $this->ajax_die($lang['NEED_TO_LOGIN_FIRST']); } - if (!$cached_thanks = CACHE('bb_cache')->get($thanks_cache_key)) { - $cached_thanks = DB()->fetch_rowset('SELECT u.username, u.user_rank, u.user_id, thx.* FROM ' . BB_THX . ' thx, ' . BB_USERS . " u WHERE thx.topic_id = $topic_id AND thx.user_id = u.user_id"); - if (!empty($cached_thanks)) { - CACHE('bb_cache')->set($thanks_cache_key, $cached_thanks, $cache_lifetime); - } - } - + $cached_thanks = get_thanks_list($topic_id); $user_list = []; foreach ($cached_thanks as $row) { $user_list[] = '' . profile_url($row) . ' (' . bb_date($row['time']) . ')';