clear cache for every registeration