Does cache work for factory function?

Thank you for the informative response. I will keep track these changes!