adding caching and added patterns/ folder to .gitignore