cacheRegionExists

Checks if the cache region exists.

cacheRegionExists(region); → returns boolean

cacheRegionExists Argument Reference

region
Required

Name of the cache region.

Compatibility

Lucee:

DEPRECATED since version 5 Only been added for compatibility to other CFML Engines. These functions are already marked as "deprecated" and it's strongly suggested not to use them in new code.

Examples sample code invoking the cacheRegionExists function


Tag Syntax

Checking to see if the region is present in the cache

<cfif NOT cacheRegionExists('testregion')>
    <cfset cacheRegionNew('testregion')>
</cfif>

Fork me on GitHub