From 511f2d545e0e9c84cad69a21b48bd346ce234952 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 29 Jul 2025 19:00:40 +0300 Subject: [PATCH] Update thanks.php --- library/ajax/thanks.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/ajax/thanks.php b/library/ajax/thanks.php index 0d37e0b2b..95b132386 100644 --- a/library/ajax/thanks.php +++ b/library/ajax/thanks.php @@ -29,6 +29,9 @@ if (!$poster_id = (int)$this->request['poster_id']) { $this->ajax_die($lang['NO_USER_ID_SPECIFIED']); } +$cache_lifetime = 3600; +$thanks_cache_key = 'topic_thanks_' . $topic_id; + switch ($mode) { case 'add': if (IS_GUEST) {