Lucee's controler thread validates every connection on every datasource every minute regardless of your timeout settings. This can cause a lot of traffic when you have a lot of datasources, and the validation is inside a syncronized method as explained in ticket https://luceeserver.atlassian.net/browse/LDEV-3124
Provide a setting to disable the every-minute validation checks. The validation flag can still be enabled on the datasource which will validate the connection before it is used.
env variiable to influence this will be
I see the new flag, but there is a problem where it's never actually being used!
The validate param to this method needs to actually be influencing this if statement so the isValidEL() call is skipped when validate is false.
added the missing check
Looks good Thanks for letting me review it!!