HotcakesCommerce / hotcakes-commerce-core

The core of the e-commerce part of the overall solution. This is an ecommerce shopping cart solution built on top of the DNN (DotNetNuke) CMS. Anyone can do commerce online now!
https://mmmcommerce.com
MIT License
69 stars 55 forks source link

SI: Add purge temp files scheduled job to clear image files #44

Closed WillStrohl closed 4 years ago

WillStrohl commented 7 years ago

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.

WillStrohl commented 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.

WillStrohl commented 4 years ago

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