Skip to main content
Template builds cache previously completed layers so repeated builds do not have to rerun every instruction, which speeds up iteration. Skip the cache only when you need to force a fresh build — skipping the cache makes builds significantly slower. Caching is enabled by default and requires no configuration. When you want to skip the cache and force a rebuild, the SDK and CLI offer three levels of control:
Important: The chained methods skipCache() / skip_cache() do not skip a single instruction only — they apply to all subsequent layers from the point they are called. The earlier you place the call, the more of the cache is invalidated.
Example: skip the cache in the definition and force a full rebuild (the two approaches can be combined).
Last modified on November 11, 2026