Add clearCache method