commit cache and log