Skip to main content
Deepak Kumar Padhy
Inspiring
Jul 17, 2014 3:48 PM UTC
Question

cacheid attribute on cfquery is not working

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

BKBK
Community Expert
Community Expert
Jul 19, 2014 1:18 PM UTC

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

Translate