{"id":45065,"library":"gulp-cached","title":"gulp-cached","description":"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.","status":"maintenance","version":"1.1.1","language":"javascript","source_language":"en","source_url":"git://github.com/contra/gulp-cached","tags":["javascript","gulpplugin"],"install":[{"cmd":"npm install gulp-cached","lang":"bash","label":"npm"},{"cmd":"yarn add gulp-cached","lang":"bash","label":"yarn"},{"cmd":"pnpm add gulp-cached","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package does not provide ESM exports; use CommonJS require.","wrong":"import cache from 'gulp-cached';","symbol":"cache","correct":"var cache = require('gulp-cached');"}],"quickstart":{"code":"var gulp = require('gulp');\nvar jshint = require('gulp-jshint');\nvar cache = require('gulp-cached');\n\ngulp.task('lint', function() {\n  return gulp.src('files/*.js')\n    .pipe(cache('linting'))\n    .pipe(jshint())\n    .pipe(jshint.reporter('default'));\n});\n\ngulp.task('watch', function() {\n  gulp.watch('files/*.js', gulp.series('lint'));\n});\n\ngulp.task('default', gulp.series('watch', 'lint'));","lang":"javascript","description":"Example using gulp-cached to cache linting files, skipping unchanged files."},"warnings":[{"fix":"Ensure cache() is placed before any transformation plugins that change file contents.","message":"Cache key is based on file.path + file.contents; plugins that modify file.contents before caching will cause false cache misses.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use gulp-cached only for per-file transformations; do not use before aggregation plugins.","message":"Does not work with plugins that operate on sets of files (e.g., gulp-concat).","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Migrate to gulp-changed (file timestamp based) or gulp-newer (last modified time).","message":"Package is in maintenance mode with no updates since 2015. Consider using 'gulp-changed' or 'gulp-newer' as more actively maintained alternatives.","severity":"deprecated","affected_versions":">=1.1.1"}],"env_vars":null,"search_vec":"'1.1.1':21 '2015':29 '3':60 '4':63 'accur':80 'across':15 'cach':3,8,75 'chang':45,68,81 'checksum':56 'compar':37,70 'comparison':78 'content':33,46,77 'detect':82 'downstream':49 'emit':48 'ensur':79 'file':7,14,32,43,71 'gulp':2,10,59,67,74 'gulp-cach':1,73 'gulp-chang':66 'gulpplugin':84 'in-memori':4 'javascript':83 'last':27 'latest':24 'md5':55 'memori':6,35 'optimizememori':52 'option':53 'pass':41 'process':18 'reduc':17 'releas':26 'run':16 'skip':12 'stabl':25 'store':31 'subsequ':40 'support':50 'time':19 'timestamp':72 'unchang':13 'unlik':65 'updat':28 'use':76 'version':20 'work':57 'x':61,64","created_at":"2026-06-07T12:53:12.162847+00:00","updated_at":"2026-06-07T12:53:12.162847+00:00","problems":[{"fix":"Use require('gulp-cached') instead of import.","cause":"Incorrect import: using ES6 import syntax with a CJS-only module.","error":"TypeError: cache is not a function"},{"fix":"call cache('cacheName') with a string argument.","cause":"Missing cache name argument when calling cache().","error":"gulp-cached: cache name required"},{"fix":"Place cache() before any streaming transformations; use gulp.src() output directly.","cause":"Using gulp-cached with a stream that is not in objectMode (e.g., after gulp.dest).","error":"gulp-cached: stream must be in objectMode"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://github.com/contra/gulp-cached","github":"git://github.com/contra/gulp-cached","docs":null,"changelog":null,"pypi":null,"npm":"gulp-cached","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}