From d11acff3c8283360d85ca54ff83e35b45954578e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Thu, 16 Oct 2025 09:57:11 +0200 Subject: [PATCH] Ignore current cache on command --- src/Command/CacheLatestArticlesCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }