Update thanks.php

This commit is contained in:
Roman Kelesidis 2025-07-29 19:00:40 +03:00
commit 511f2d545e
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4

View file

@ -29,6 +29,9 @@ if (!$poster_id = (int)$this->request['poster_id']) {
$this->ajax_die($lang['NO_USER_ID_SPECIFIED']); $this->ajax_die($lang['NO_USER_ID_SPECIFIED']);
} }
$cache_lifetime = 3600;
$thanks_cache_key = 'topic_thanks_' . $topic_id;
switch ($mode) { switch ($mode) {
case 'add': case 'add':
if (IS_GUEST) { if (IS_GUEST) {