# Cache:Pull Allow greater control of cache branch

**URL:** <https://discuss.bitrise.io/t/cache-pull-allow-greater-control-of-cache-branch/11907>\
**Category:** Steps\
**Tags:** build-cache, 🛠-in-progress\
**Created:** [February 11, 2020, 11:55am UTC](https://discuss.bitrise.io/t/cache-pull-allow-greater-control-of-cache-branch/11907 "2020-02-11T11:55:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ka-ching](https://avatars.discourse-cdn.com/v4/letter/k/0ea827/32.png) [@ka-ching](https://discuss.bitrise.io/u/ka-ching)\
**Post date:** [February 11, 2020, 11:55am UTC](https://discuss.bitrise.io/t/cache-pull-allow-greater-control-of-cache-branch/11907/1 "2020-02-11T11:55:57Z")

</div>

## Description of the feature request

Currently the Cache:Pull step either looks for a cache file matching the source branch - or otherwise it falls back to the default branch (often ‘master’).

We would like a slightly refined cache fallback mechanism:  
Say we are doing a PR from branch ‘my-bugfix-branch’ to ‘2.4.0’.  
In case we have no cache for ‘my-feature-branch’, we would very much like for the fallback to try the PR destination (2.4.0) - and only if this does not exist, then fall back to the default branch.

Alternatively being able to select the cache (or a prioritized list of caches) through inputs to Cache:Pull would allow us to build this fallback mechanism ourselves.

## Use case / for what or how I would use it

Our git branching workflow is that during development, we make PRs towards master.  
But when we are entering a QA period before a new release, we branch out onto a ‘release’ branch (named with the release version number). All bugfix PRs are then made against the release branch from then on.  
Being able to fallback to a cache representing the release branch in this situation would increase the usability of the cache.

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [February 12, 2020, 9:40am UTC](https://discuss.bitrise.io/t/cache-pull-allow-greater-control-of-cache-branch/11907/2 "2020-02-12T09:40:57Z")

</div>

Hey there @ka-ching!

Thanks for your feature request, sounds really handy to be honest 🙂  
Don’t forget to vote on it though 😉
