Closed WillStrohl closed 4 years ago
After troubleshooting this further, this temp folder not only has the images, but also other upload files, such as the XLS import spreadsheet.
We just finished cooking up a fresh batch of Hotcakes for you. Enjoy! ;)
https://dnncommunity.org/blogs/Post/5689/Hotcakes-Commerce-03-03-00-Release-Marks-a-Major-Milestone
When Hotcakes creates images as a result of uploading a product or category image, temporary files are created as well. Those temporary files are never deleted. Once a store has uploaded 30k+ images, there will be a suppressed exception that prevents any new images from being uploaded.
https://msdn.microsoft.com/en-us/library/system.io.path.gettempfilename(v=vs.110).aspx
One solution could be to simply delete the temporary images immediately upon saving the thumbnails.
This update suggests instead to create a scheduled job to clear out the temporary image files, with the scheduled job set to run once per week by default.