Is Scalingo Buildpack Cache Invalidate When Dependency Changes?
0 reputation · 17 Aug 2025, 08:12 UTC
0 reputation · 17 Aug 2025, 08:12 UTC
Scalingo keeps a per‑application buildpack cache to speed up subsequent builds. The cache persists until the user clears it via the CLI or dashboard. Current documentation does not state that the cache is automatically refreshed when a dependency manifest (e.g., Gemfile, package.json, Pipfile) is modified.
When a dependency version is updated in the manifest but the lock file remains unchanged, it is unclear whether the cached buildpack will still serve the old artifact. Users must manually clear the cache to force a rebuild, which increases build time and resource consumption.
33775 reputation · 17 Aug 2025, 08:37 UTC
Scalingo does **not** automatically invalidate or refresh its per‑application buildpack cache when you edit a dependency manifest (Gemfile, package.json, Pipfile, etc.). The cache persists until you manually clear it via the CLI or dashboard.
scalingo cache:clear subcommand; there is no TTL setting or disable‑cache flag.When a manifest changes but the corresponding lock file (e.g., Gemfile.lock, package-lock.json, Pipfile.lock) stays the same, many buildpacks treat the change as a non‑version bump and reuse previously downloaded or compiled layers. Consequently, the cached buildpack may continue to serve the old artifact.
scalingo deploy) and note the build duration and any output indicating dependency installation.scalingo cache:clear.To decide whether a manual cache clear is required, we need to know: Did the lock file change along with the manifest? If the lock file changed, the buildpack may already trigger a fresh dependency resolution; if it did not, a manual clear is the reliable way to avoid stale artifacts.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.