In-memory file cache for Gulp that skips unchanged files across runs, reducing processing time. Version 1.1.1 is the latest stable release (last updated 2015). It stores file contents in memory and compares them on subsequent passes; only files with changed content are emitted downstream. Supports an optimizeMemory option for md5 checksums. Works with Gulp 3.x and 4.x. Unlike gulp-changed which compares file timestamps, gulp-cached uses content comparison, ensuring accurate change detection.
npm install gulp-cachedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example using gulp-cached to cache linting files, skipping unchanged files.
Ensure cache() is placed before any transformation plugins that change file contents.
Use gulp-cached only for per-file transformations; do not use before aggregation plugins.
Migrate to gulp-changed (file timestamp based) or gulp-newer (last modified time).
Use require('gulp-cached') instead of import.call cache('cacheName') with a string argument.Place cache() before any streaming transformations; use gulp.src() output directly.
No dependency data recorded yet.