add clearCache method