Checks if the cache region exists.
True if the cache region exists.
ColdFusion 10: Added this function.
CacheRegionExists(region)
Parameter |
Description |
|---|---|
region |
Name of the cache region. |
<!--- Checking if the region is present in the Cache --->
<cfif #cacheRegionExists("testregion")# EQ "YES">
<cfset cacheRegionRemove("testregion")>
<cfif #cacheRegionExists("testregion")# EQ "NO">
<cfoutput>Region is deleted<br></cfoutput>
</cfif>
<cfelse>
<cfset cacheRegionNew("testregion")>
<cfset cacheRegionRemove("testregion")>
<cfif #cacheRegionExists("testregion")# EQ "NO">
<cfoutput>Region is deleted<br></cfoutput>
</cfif>
</cfif>
Sign in to your account