clear cache when a module is removed