Fixed error in whole cache purging