REFACTOR: write commits-cache