refactored clear sde cache logic