Add .idea to .gitignore.
Fix caching.