Skip to main content
Deepak Kumar Padhy
Inspiring
July 17, 2014
Question

cacheid attribute on cfquery is not working

  • July 17, 2014
  • 1 reply
  • 355 views

As per the CF10 documentation,

cacheID

Optional

ID to be used to store query result in cache. This ID can be used to either retrieve or remove query from cache

So what I have tried is simply,

<cfquery name="qryGetStudents" datasource="localdsn" cachedwithin="#createTimeSpan(1,0,0,0)#" cacheid="q1">

    SELECT    *

    FROM    student

</cfquery>

and dumped

<cfdump var="#CacheGetAllIds()#">

CacheGetAllIds() returns an array, So logically this array should contain the cache id "q1" .But I can not see that.

Anyone else faced the same?

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
July 19, 2014

What you have discovered is a bug. You should report it at the bugbase.