Clear cache when notified of changes.

I'll also move this to the init method - it's only really necessary after an `pygit2.init_repository`