Save Cache (Beta) v1.1.0

The step can now skip saving the cache if it detects that the new cache would have the same contents as previously restored in the workflow with the restore-cache step. This requires two things:

  • use a cache key that includes a checksum (thus the key changes every time the cached files change)
  • opt-in to this optimization by setting the is_key_unique input to true

Even if is_key_unique is false (the default value), the step can skip the uploading phase, but it needs to create the compressed archive still. Make sure to use checksums in the cache key and set is_key_unique for the best results.

Note: this feature requires support from the restore-cache step too, make sure to upgrade to version 1.0.2.

What鈥檚 Changed

Full Changelog: Comparing 1.0.2...1.1.0 路 bitrise-steplib/bitrise-step-save-cache 路 GitHub

This topic was automatically closed after 90 days. New replies are no longer allowed.