# Saving 5,400 hours a year with Gradle's Configuration Cache

DevFeed: [Saving 5,400 hours a year with Gradle's Configuration Cache](<https://devfeed.tech/articles/saving-5-400-hours-a-year-with-gradle-s-configuration-cache-15462.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/5-400-hours-a-year-saving-developers-time-and-sanity-with-gradles>)

Author: Paul Hundal

Published: 2022-12-13T05:00:00Z

Content type: article

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [Gradle](<https://devfeed.tech/topics/gradle.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [developer-productivity](<https://devfeed.tech/topics/developer-productivity.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2019](<https://devfeed.tech/tags/2019.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [all](<https://devfeed.tech/tags/all.md>), [allowed](<https://devfeed.tech/tags/allowed.md>), [also](<https://devfeed.tech/tags/also.md>), [android](<https://devfeed.tech/tags/android.md>), [android-apps](<https://devfeed.tech/tags/android-apps.md>), [anvil](<https://devfeed.tech/tags/anvil.md>), [approach](<https://devfeed.tech/tags/approach.md>), [apps](<https://devfeed.tech/tags/apps.md>), [arguments](<https://devfeed.tech/tags/arguments.md>), [automate](<https://devfeed.tech/tags/automate.md>), [cache](<https://devfeed.tech/tags/cache.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [productivity](<https://devfeed.tech/tags/productivity.md>), [saving](<https://devfeed.tech/tags/saving.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

Gradle's Configuration Cache reuses previously computed task graphs, reducing repeated work in the configuration phase. At Square, local build wait time fell from 182 to 25 hours per week after integration; sampled builds averaged 74 seconds with the cache enabled versus 136 seconds without it, and builds using the same task graph saved 35 seconds. Failed builds also completed faster, and the team reported no increase in build failures among cache-enabled builds. Adoption required upgrades or fixes to third-party tools and open-source projects, so MDX Android added cache support to its developer tools and used an opt-in rollout. Based on those results, it planned to enable the cache by default while allowing case-by-case opt-outs. The article estimates this could save more than 5,400 hours and $1.1 million in productivity annually.

## Source excerpt

Recovering an estimated $1.1 million in lost productivity annually