For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

isFromCache

abstract fun isFromCache(): Boolean(source)

Returns whether the output for this task was pulled from a build cache when using task output caching.

NOTE: This will always be false if the Gradle version does not support task output caching.

Return

true if the output for this task was from a build cache

Since

3.3