tracker issue : CF-3208819

select a category, or use search below
(searches all categories and all time range)

cacheGetProperties() Returning Incorrect Results for Default Caches

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Rob Bilson / Rob Bilson (Rob Bilson)

Created: 06/07/2012

Components: Documentation

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Problem Description:

In cf 9, you could call cacheGetProperties() with no parameters and it would return an array with two elements. One for the OBJECT cache and one for the TEMPLATE cache.  In CF 10, calling caceGetProperties() only returns the data for the OBJECT cache.  To get the results for the TEMPLATE cache, you have to call cacheGetProperties("template").

Steps to Reproduce:

<h3>Default Cache Config - Bug in CF 10. Should return results for both object and template cache, but doesn't</h3>
<cfdump var="#cacheGetProperties()#">

Actual Result:

Expected Result:

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3208819

External Customer Info:
External Company:  
External Customer Name: Rob Brooks-Bilson
External Customer Email:  
External Test Config: My Hardware and Environment details:



By default when any cacheregion is not given OBJECT region is used. This applies to all the cache functions which expect cacheRegion. Making the default to use both Object and Template cache will make this function inconsistent from rest of the cache functions and therefore, this will not be fixed. For cacheGetProperties(), one can use "All" to get the properties from both Object and template cache and that would work in both CF 9 and CF 10. The change in behaviour needs to be documented.
Comment by Rupesh K.
19060 | June 14, 2012 12:44:01 AM GMT
Assigning to Prabhuram
Comment by Suhas Y.
19061 | October 15, 2012 12:39:52 AM GMT
@Akhila : Please review the note added to Function syntax section here:
Comment by Nishita K.
19062 | September 29, 2015 01:38:36 AM GMT