Description
Checks if the cache region exists.
Returns
True if the cache region exists.
History
ColdFusion 10: Added this function.
Checks if the cache region exists.
True if the cache region exists.
ColdFusion 10: Added this function.
cacheRegionExists(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>