Fix cache and log in .gitignore