In researching a possible answer to this question about "Server error occurred. Restart Camera." while taking photos on the Samsung Galaxy S6, I read this article.
The article talks about wiping the cache partition via Android System Recovery and performing a Factory Reset.
Question: Does an Android Factory Reset also clear the cache partition? Or does it only clear the data partition?
Yes, a factory reset clear's the cache, dalvik cache, along with the user data.
<string name="factory_reset1">Wipes Data, Cache, and Dalvik</string>
The information on factory reset is hidden in the Source code.