add commit cache (feature #622)

fixed