Committing before clearing cache