Added clearCache method