checkArticle($id); if (empty($article->tags)) return []; $tagIds = kg_array_column($article->tags, 'id'); $randKey = array_rand($tagIds); $tagId = $tagIds[$randKey]; $cache = new TaggedArticleListCache(); $result = $cache->get($tagId); return $result ?: []; } }