Added clear_cache functions, and added comments for other caching stuff