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 functionality 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 reduce the risk of 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.
GetTemplatePath() This function is deprecated. Use the GetBaseTemplatePath() function instead.
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
s3delete() deletes a bucket or an object within a bucket.
s3deletebucket() deletes a bucket, this function is deprecated, use instead S3Delete.
StoreAddACL() Adds ACL to existing ACL for object or bucket. This function operates identically to "S3AddACL", making it deprecated. The updated function offers greater flexibility in defining the endpoint.
StoreGetACL() Returns an array of structures, with each structure representing an ACL (Access Control List) grant. This function operates identically to "S3GetACL", making it deprecated. The updated function offers greater flexibility in defining the endpoint.
StoreGetMetadata() Returns the metadata related to the object or bucket. This function operates identically to "S3GetMetaData", making it deprecated. The updated function offers greater flexibility in defining the endpoint.
StoreSetACL() Sets the ACL for object or bucket. This function operates identically to "S3SetACL", making it deprecated. The updated function offers greater flexibility in defining the endpoint.
StoreSetMetadata() Sets the metadata on bucket or object. This function operates identically to "S3SetMetaData", making it deprecated. The updated function offers greater flexibility in defining the endpoint.
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

<cfauthenticate> Authenticates a user, setting a security context for the application. For more information, see the descriptions of IsAuthenticated and AuthenticatedContext.
<cfservlet> This tag has been deprecated and is non-functional.
<cfservletparam> This tag has been deprecated and is non-functional.