Page MenuHomePhabricator

Clean up ORES thresholds cache: pre-emptively check before expiry
Open, MediumPublic

Description

Let's follow up on Krinkle's suggestion to check the cached value *before* it expires, and if the service is unreachable, put the old value back into the cache for some shorter TTL.

The benefit is that we won't unnecessarily degrade ORES features in the event that the cache expires and an API request fails.