cfquery cache stores failed queries

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default cfquery cache stores failed queries

    cfquery cache still stores failed queries. This was reported years ago
    ([url]http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=6&threadid=8[/url]
    58673&highlight_key=y&keyword1=cache is the earliest report I can find)

    Still no fix from Macrobe. Has anyone found a suitable work around. BTW:
    setting the cache timespan to createtimespan(0,0,0,0) failed to clear the query
    from the cache. I was only able to clear the query from cache by removing the
    cachedwithin attribute. That is not a valid work around.



    <cftry>
    <cftransaction isolation="READ_COMMITTED">
    <cfquery name="getStyles" datasource="#application.datasource#"
    cachedwithin="#CreateTimeSpan(0,4,0,0)#">
    SELECT DISTINCT Style
    FROM Properties
    WHERE
    ISNULL(Style,'') != ''
    ORDER BY
    Style
    </cfquery>
    </cftransaction>
    <cfcatch type="Database">
    <cfinclude template="/mlsfindershared/__error_message.cfm">
    <cfinclude template="/mlsfindershared/__error_email.cfm">
    </cfcatch>
    </cftry>

    Wilgeno Guest

  2. Similar Questions and Discussions

    1. Cache queries.
      Hi, I know that the default cache queries in the Cf Administrator is 100, but is there a way I can find out what RAM a query is using? The...
    2. two queries - one cfquery call
      I'm trying to do the following in one single cfquery call. However, I'm having trouble referencing "memberCount" in the Insert part of the...
    3. ERROR: cache lookup failed for type 0
      Tzahi Fadida <tzahi_ml@myrealbox.com> writes: Um. The "clean" way to do this is to use BlessTupleDesc and then heap_formtuple. That requires...
    4. returning a setof tuples like a subquery was(ERROR:cache lookup failed for type 0 )
      yes you were right it works now. 10x, sorry for the rookie mistake I jumped the gun on the last one. If you will i have another question on the...
    5. ERROR: cache lookup failed for type 0
      Hi, I am learning how to use the c functions and my function below works when I do: select testgetrows(); but when I do select * from...
  3. #2

    Default Re: cfquery cache stores failed queries

    Any chance you could load the query into an application scope variable as the method of caching?
    Kevin Schmidt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139