clear registry after cache