diff --git a/api/v1/database/mastodon/accounts/search/mod.php b/api/v1/database/mastodon/accounts/search/mod.php index 7477b04..f33be19 100644 --- a/api/v1/database/mastodon/accounts/search/mod.php +++ b/api/v1/database/mastodon/accounts/search/mod.php @@ -163,7 +163,7 @@ if (isset($_GET['profile']) && trim($_GET['profile']) != '') $count_matches = 0; $enable_caching = false; $match_cache_exists = true; - $match_ckey = _cachekey_construct('matches_note', $filter_key, $qt); + $match_ckey = _cachekey_construct('matches_note', $filter_key, $qt.json_encode($q)); $match_data = []; if (content_cache__exists($match_ckey) !== false) $match_data = content_cache__get($match_ckey); @@ -236,7 +236,7 @@ if (isset($_GET['profile']) && trim($_GET['profile']) != '') } } if ($enable_caching && !$match_cache_exists) - content_cache__put($match_ckey, 'ondemand,300', $match_data); + content_cache__put($match_ckey, 'ondemand,3600', $match_data); } $config = instance_config('mastodon');