Fixed vBulletin 4.x Attachment Import: Regularly clean-up temporary files?

Steffen

Well-known member
Affected version
2.0.0
Importing many attachments accumulates lots of temporary files which aren't deleted until the whole import is finished (in the "register_shutdown_function" handler). I think this could even trigger "out of memory" errors because of the ever-growing File::$tempFiles array.

Suggestion: Maybe call File::cleanUpTempFiles() in each "stepAttachments" invocation?

(Maybe other importers are affected as well, I haven't checked them.)
 
Top Bottom