tracker issue : CF-3308176

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

cacheRemove and IDs with commas

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 08/10/2012

Components: Caching

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / 288676

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

You are allowed to put, and get, cache items with a comma in it. For example:

<cfset cachePut("foo,moo", 1)>
<cfdump var="#cacheGetAllIds()#">
<cfset v = cacheGet("foo,moo")>


But if you try to remove it, you can't, since cacheRemove takes a list of IDs. There needs to be a way for someone to remove a key they make, or, cachePut should throw an error if you use a key with a comma in it.

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

Watson Bug ID:	3308176

External Customer Info:
External Company:  
External Customer Name: cfjedimaster
External Customer Email:  
External Test Config: My Hardware and Environment details:



A comma in ID string for cache item is creating an issue, works for cacheGet() and not for cacheRemove(). Comma is interpreted as a separator for the list of IDs.
Comment by Akhila K.
18566 | October 08, 2012 01:24:39 AM GMT
Can I ask why this is neverfix? Why not simply make cacheRemove accept an array as well as a string? If an array is passed we can use keys with commas.
Comment by External U.
18567 | June 03, 2013 08:40:12 AM GMT
I got an email that this was updated but I'm not sure what changed. if it was closed, I'd like to know why. This is still broken.
Comment by External U.
18568 | February 26, 2014 08:53:36 AM GMT
cacheRemove will also support array of Ids from now on, hence issue is fixed.
Comment by Akhila K.
18569 | February 27, 2014 01:15:07 AM GMT