# Restore cache not working after a failed step

**URL:** <https://discuss.circleci.com/t/restore-cache-not-working-after-a-failed-step/43932>\
**Category:** Caching Dependencies\
**Created:** [May 6, 2022, 1:54am UTC](https://discuss.circleci.com/t/restore-cache-not-working-after-a-failed-step/43932 "2022-05-06T01:54:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indradeepchowdhury](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/indradeepchowdhury/32/29168_2.png) [@indradeepchowdhury](https://discuss.circleci.com/u/indradeepchowdhury)\
**Post date:** [May 6, 2022, 1:54am UTC](https://discuss.circleci.com/t/restore-cache-not-working-after-a-failed-step/43932/1 "2022-05-06T01:54:11Z")

</div>

Hi Team,

Today I noticed that the restore cache step did not work if any of the previous steps have failed. I tried using the always clause, but that did not help either. It works correctly if there are no failures in any of the preceding steps. Just wanted to check if this behaviour is by design?

Cheers,  
Indro
