Deprecated Tags & Functions

Backwards compatibility is considered super important in Lucee.

Deprecated means that whilst the functionality is still supported and available, Lucee offers newer, more modern way(s) to achieve the same result.

Why do we document something as deprecated? It's because there's newer functionality that offers:

  • better argument order for functions, to make your code clearer
  • better performance
  • cleaner, clearer programming styles
  • less overloaded functionality which results in complicated code signatures / documentation.

Realistically we seldom actually remove deprecated fuctionality from Lucee (eg IsDefined() still works in Lucee 5.x), but when something is deprecated, it's a warning that it might be removed, so you should act accordingly.

Deprecation also flags that the given feature might possibly be removed in a future major release of Lucee, therefore it acts as advice to stop using the functionality.

Functions

CacheKeyExists() this function is deprecated
CacheRegionExists() this function exists solely for the purpose of compatibility with other CFML Engines.
CacheRegionNew() This function exists solely for the purpose of compatibility with other CFML Engines.
CacheRegionRemove() this function exists solely for the purpose of compatibility with other CFML Engines.
CacheRemoveAll() this function is deprecated, use instead cacheClear. Removes all elements from the cache
ComponentInfo() this function is deprecated, use function getMetadata instead.
CreateODBCDate() Creates an ODBC date object.
CreateODBCDateTime() Creates an ODBC date-time object.
DecrementValue() this function is deprecated, use instead the -- operator;Decrements the current number by one
Each() call the given UDF/Closure with every entry (key/value) in the given collection.
Empty() This function is deprecated, use instead IsEmpty()
ESAPIEncode() Encodes the given string for safe output to stop Cross Site Scripting attacks.
GetCurrentContext() this function is deprecated, use function CallStackGet instead.
GetK2ServerDocCount() This function is deprecated.
GetK2ServerDocCountLimit() This function is deprecated.
GetMetricData() Gets server performance metrics.
ImageDrawImage() this function is deprecated, use ImagePaste instead. Draws a image on a image with the baseline of the first character positioned at (x,y) in the image.
IncrementValue() this function is deprecated, use instead the ++ operator;Increments the current number by one
IsDefined() Evaluates a string value to determine whether the variable named in it exists.
ListTrim() this function is deprecated, use instead ListCompact
LSEuroCurrencyFormat() this function is just an alias for lsCurrencyFormat
LSParseEuroCurrency() use function lsParseCurrency instead
NowServer() this function is deprecated, returns the current time on the server independent on lucee timezone definition
QueryConvertForGrid() Use instead the function QuerySlice.
QueryGetRow() this function is deprecated, use function QueryRowData instead.
QuotedValueList() Returns a quoted list of all the values, for a given column within the query, delimited by the value given. this function is deprecated, use instead the function queryColumnData
UnserializeJava() literal definition of a serialized Java Object by function serialize
ValueArray() Returns an array of all the values, for a given column within the query. this function is deprecated, use instead the function queryColumnData
ValueList() Returns a list of all the values, for a given column within the query, delimited by the value given. this function is deprecated, use instead the function queryColumnData

Tags

<cfapplet> Used in a cfform tag, cfapplet lets you reference custom Java applets that you have registered using the Lucee Administrator.
<cfauthenticate> Authenticates a user, setting a security context for the application. For more information, see the descriptions of IsAuthenticated and AuthenticatedContext.
<cfgraph> Displays a graphical representation of data.
<cfgraphdata> Specifies a data point to be displayed by a cfgraph tag.
<cfservlet> This tag has been deprecated and is non-functional.
<cfservletparam> This tag has been deprecated and is non-functional.