Closed Rush closed 6 years ago
I know the current behavior is less than optimal, but I've actually been thinking of doing something in the lines of https://github.com/Drillster/drone-volume-cache/issues/12#issuecomment-325314080.
I'm not a fan of changing the default, since it will cause every cache to be invalidated.
Thanks. I'll give it some thought but probably the cache key template should allow for any env vars rather than just what we can come up with.
That would be a very nice addition indeed.
I finally found the time to implement configurable cache keys (in https://github.com/Drillster/drone-volume-cache/commit/464e3f02892f84f644596e6a0d1a35c0e1df2bb5).
I think this is a much better default behavior. Less cache misses when people are working on multiple different branches and each can thrash the cache.
Let me know if you think this needs to be configurable