Clear cache when notified of changes.

@smn This will not raise a `KeyError` anymore, it will raise a `CmsRepoException`. I'll add a test and fix