fix: logic bug in 429 caching logic (#3669)

This commit is contained in:
Dag 2023-09-14 03:26:01 +02:00 committed by GitHub
parent bb7f329e81
commit 409236e48e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}