AdobeStock_455007340

Faster UDF Initialization

Within user defined functions (UDF’s) there is often the need to initialize variables, saving strings or complex data in them. If there is a chance that a UDF will be called more than once per request, consider putting these variables in the REQUEST scope and initialize them just once (checking IsDefined() each time to see if it exists yet). (Applies to: ColdFusion 5)

Leave a Reply