add minimize cache directory option

imagemin task is too slow, so I add a cache for it.