Adding purgeCache method.