added clearCache method