jenkinsci/bitbucket-branch-source-plugin

Cache commit information identified by hash

Closed this issue · 0 comments

What feature do you want to see added?

Currently, the plugin sends a lot of requests to bitbucket for commit information in BitbucketCloudApiClient.java, requests to /commit/{hash}
Those requests could be reduced quite a lot by caching this information, as a commit, identified by the hash, doesn't change anymore.
This improves the problem of rate-limited requests to Bitbucket Cloud.

Upstream changes

No response

Are you interested in contributing this feature?

yes, I already have a working version and will open a PR for further discussion in a few minutes