Stale cache being used

cache

#1

I have recently added a new directory to cache-directories in our circle.yaml. Upon trying to test it on a branch, doing sequential builds I noticed that it kept taking cache from master. I gave up there and pushed change to master.

It has since been multiple green builds on master and in all of them during “Saving cache” phase I see my directory being saved to cache. Yet in subsequent builds when the cache is being restored, the directory is not present. Indeed looking at the cache link CircleCI is presenting to me, it seems to be using a cache from multiple builds ago, before I added the directory.

What gives? Cache is being saved, build is green, yet it’s as if the new cache is not being updated as the most recent one.

We’re using 1.0. I’m unable to link to the project as it’s a private one.


#2