checkSize enumerates all the files in a large temp folder 100001 times every hour

Description

Does this really need to enumerate the folder every time within the while loop,
and then loop over the enumerated list of files again comparing dates?

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/engine/Controler.java#L507

Environment

None

Assignee

Unassigned

Reporter

Zac Spitzer

Priority

Critical

Fix versions

None

Affects versions

Configure