diff --git a/src/Command/CacheLatestArticlesCommand.php b/src/Command/CacheLatestArticlesCommand.php index 3ae10f6..577b7d3 100644 --- a/src/Command/CacheLatestArticlesCommand.php +++ b/src/Command/CacheLatestArticlesCommand.php @@ -48,7 +48,7 @@ class CacheLatestArticlesCommand extends Command $key->convertToHex('npub1fls5au5fxj6qj0t36sage857cs4tgfpla0ll8prshlhstagejtkqc9s2yl'), // AGORA Marketplace - feed 𝚋𝚘𝚝 (Just annoying) ]; - if (!$cacheItem->isHit()) { + // if (!$cacheItem->isHit()) { $boolQuery = new BoolQuery(); $boolQuery->addMustNot(new Terms('pubkey', $excludedPubkeys)); @@ -70,9 +70,9 @@ class CacheLatestArticlesCommand extends Command $cacheItem->expiresAfter(3600); // Cache for 1 hour $this->articlesCache->save($cacheItem); $output->writeln('Cached ' . count($articles) . ' articles.'); - } else { - $output->writeln('Cache already exists for key: ' . $cacheKey . ''); - } +// } else { +// $output->writeln('Cache already exists for key: ' . $cacheKey . ''); +// } return Command::SUCCESS; }