gulp-community / gulp-cached

A simple in-memory file cache for gulp
MIT License
452 stars 23 forks source link

Use case scenario and possible advantages #3

Closed gsklee closed 10 years ago

gsklee commented 10 years ago

I'm not very sure what's the use case scenario and possible advantages of using this Gulp task; could we have more explanations or examples on this?

yocontra commented 10 years ago

It makes sure you don't process the same file multiple times. If you have any suggestions for the docs I would be happy to take PRs

gsklee commented 10 years ago

@Contra I don't understand under what condition will this plugin be working. For example, if my build steps involves wiping clean the dist folder, or even wiping out the whole git repo before pulling down afresh, will the benefit still be enjoyed?

yocontra commented 10 years ago

@gsklee This plugin is simply for making sure that the same file contents are not processed more than one time in a row. This is only useful if used in conjunction with a watch where the same task is being executed multiple times