Build Cache Invalidation Debugger
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
The Build Cache Invalidation Debugger is a developer tool that helps debug build cache invalidation issues in smart contract projects. It analyzes user-provided build configuration including Solidity version, optimizer settings, EVM version, dependencies, and source changes, identifies triggers that should invalidate the build cache, and provides actionable recommendations. This helps developers understand why builds might be using stale cached outputs, diagnose inconsistent compilation results, and ensure that changes are properly reflected in the build output.
HOW TO USE
Enter your project's build configuration: Solidity version, optimizer runs, EVM version, dependencies (one per line), and describe any source changes. Click "debug cache invalidation" to analyze potential invalidation triggers. The tool identifies issues such as compiler version changes, optimizer setting modifications, dependency updates, and source file changes. Results include a summary of invalidation triggers, specific recommendations, and a list of cache clearing commands for Hardhat, Foundry, Truffle, and manual cache management.
TECHNICAL MECHANISM
The tool performs static analysis on the provided build configuration. It checks for Solidity version changes, optimizer runs modifications, EVM version differences, dependency updates, and source file changes—all of which are known to invalidate build caches. For each trigger, the tool generates a human-readable description and a recommendation. The tool also provides a curated list of cache clearing commands for popular development frameworks: Hardhat (npx hardhat clean), Foundry (forge clean), Truffle (rm -rf build/contracts), and manual removal of common cache directories (cache/, .hardhat/, out/, node_modules/.cache/). The output is structured as a diagnostic report with clear sections for triggers, recommendations, and commands.
WHAT IT CANNOT SEE
The tool cannot actually invalidate build caches or modify build systems. It cannot detect all possible cache invalidation triggers without comprehensive analysis. The tool cannot predict the exact impact of cache invalidation on build times. It cannot verify that the recommended cache invalidation will resolve build issues. The tool cannot detect cache corruption or incomplete cache states. It cannot account for different build tools' cache mechanisms beyond the supported frameworks. The tool cannot automatically clear or manage caches across different systems.
PLEASE NOTE
This tool is designed for Ethereum Virtual Machine (EVM) compatible chains and Solidity-based projects. The tool provides recommendations based on common cache invalidation patterns—actual invalidation behavior may vary by build tool and version. Always verify that cache clearing is appropriate for your project before executing commands. The tool does not execute any commands or modify files on your system. For production builds, consider using CI/CD pipelines with clean build environments to avoid cache-related issues.