From 409236e48e4cf8bc2e2ce6e6f73942feee6a8469 Mon Sep 17 00:00:00 2001 From: Dag Date: Thu, 14 Sep 2023 03:26:01 +0200 Subject: [PATCH] fix: logic bug in 429 caching logic (#3669) --- bridges/RedditBridge.php | 2 +- bridges/YoutubeBridge.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/RedditBridge.php b/bridges/RedditBridge.php index 196f7d20..5f6070e3 100644 --- a/bridges/RedditBridge.php +++ b/bridges/RedditBridge.php @@ -90,8 +90,8 @@ class RedditBridge extends BridgeAbstract } catch (HttpException $e) { if ($e->getCode() === 429) { $this->cache->set($cacheKey, true, 60 * 16); - throw $e; } + throw $e; } } diff --git a/bridges/YoutubeBridge.php b/bridges/YoutubeBridge.php index 8e3ac540..bff62a90 100644 --- a/bridges/YoutubeBridge.php +++ b/bridges/YoutubeBridge.php @@ -205,8 +205,8 @@ class YoutubeBridge extends BridgeAbstract } catch (HttpException $e) { if ($e->getCode() === 429) { $this->cache->set($cacheKey, true, 60 * 16); - throw $e; } + throw $e; } }