add commit cache (feature #622)

I don't understand this line.