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

  1. #1

    Default query caching

    hi
    if i do <cfcache action="cache"> and have a query on this page, is it cached? or do i need to do <cfquery cachedwithin> ?

    thanks
    k
    Kiriran Guest

  2. Similar Questions and Discussions

    1. Caching in FMS 2.0.4
      Hi, We have set up FMS 2.0.4 and want to find out if caching capability is available in FMS and information regarding cache settings. Please let...
    2. enable query caching?
      I want to cache a QoQ. I added cachedwithin="#CreateTimeSpan(0, 0, 5, 0)#" to the CFquery tag. This should cache for 5 minutes .. which should be...
    3. web svc caching
      We are about to deploy our newly developed web svc, but since our svr is a laptop with limited resource and limited bandwidth, I guess I'll use a...
    4. Caching
      I have a page were data can be filtered using up to 4 listboxes. Once someone does a filter, those parameters are saved so when they come back to...
    5. ASP Caching
      Hello, I have a simple web form page in which I insert/update data to a database. The SQL code to insert data is written in a server side submit...
  3. #2

    Default Re: query caching

    First, you need to set the "Maximum number of cached queries" to a sufficient
    number, greater than zero, in the CF administrator.

    <cfcache action="cache"> caches coldfusion's html output it does not cache
    queries.

    If you use the cachedwithin attribute of CFquery, it will use cached versions
    of that query when possible.
    See the bottom of
    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/[/url]
    wwhelp.htm?context=ColdFusion_Documentation&file=0 0001128.htm for more info.

    Regards,
    -- MikeR


    MikerRoo 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