Closed irl closed 2 years ago
I'm going to close this for now as it addresses a pretty specific need that only one community member has reported and no longer intends to implement. Of course, we'd be happy to reopen this if it becomes relevant again.
When UDD has high load, it will return HTML instead of JSON with an error message. Incorrect content type should be caught and the sync should be cleanly aborted. Currently it's aborted, but with a horrible looking traceback (due to the JSON not parsing).
I haven't seen other plugins doing any caching, but it might be worthwhile to cache the results of the UDD lookup as this is just discovering packages that are of interest to the developer, and changes do not need to necessarily be reflected immediately. If the same result as last time could be used instead, the same search would be performed against BTS and while new packages might be missed, everything else will work correctly.