Make sure to clear cache whenever a type is removed