Response Problem (cache?)

Ask a Question related to Coldfusion Server Administration, Design and Development.

  1. #1

    Default Response Problem (cache?)

    Hello! I have 10 or 12 shopping sites that I have just converted to CF 6.1 from
    CF 4.5. Everything works fine except for one problem in my shopping cart
    application. The cart takes the order, gets the user information, then sends
    all the data to AuthorizeNet for Credit Card input. When that is complete,
    AuthNet posts the information with the result codes back to the reciept page.
    The problem I am having is if the reciept page hasn't been used recently, or
    after a reboot, the CF Server takes too much time regenerating the template
    into a java class and AuthNet generates a timeout error and the reciept is
    never generated. It works fine after the first time, but of course my clients
    get an error and complain. All the settings I see are global in the
    Administrator, and I have 30 to 40 sites on there that I am always tweaking, so
    I can't use the Trusted Cache option. I have raised the Template Cache size...
    Is there any way to only cache all the reciept pages, and make it stay cached
    even after a reboot? I won't have to modify them very often. It is my own
    server and I have complete control, so I am open to any options. Thanks!!

    Tteddo Guest

  2. Similar Questions and Discussions

    1. Image cache problem
      Fred, have you figured this out yet? I am having the same problem...
    2. Cache problem
      Ok i have swf that record flv as file_tmp.flv also i have swf that playing flv as file.flv i have asp file that changing the name from...
    3. xml problem, cache?
      Hey, I'm having problems with an xml feed. I need to refresh the data constantly (every miniute) I'm using setInterval and adding a unique...
    4. Difference between "No Cache" and Response.Expires
      > I think that this could be contradicting it self. I am No. I think you are confused about the difference between "expire" and "cache"... ...
    5. Response.Expires = 0 on webpages that get stuck in cache
      Will using the response.expire object alleviate the need for users to always clear their cache/refresh the browser when coming to a particular...
  3. #2

    Default Re: Response Problem (cache?)

    Two things I can think to research into:

    1) Why is the page generation taking so long? How long is it taking and why?
    To me, the cache should only be used to speed up processing and page
    generation, it should not be a requirement for a successful transaction.

    2) What is AuthorizeNet using as their timeout parameter? Maybe this setting
    is just too short and it may be configurable.


    Steve Sommers Guest

  4. #3

    Default Re: Response Problem (cache?)

    1) I don't know, but even on my development server it takes awhile (10 to 14
    seconds) to generate a page (any page...) the first time I visit it after a
    reboot. This time does go down the longer the server is on though. They aren't
    complicated pages, just 3-4 simple queries, that's about it. 4.5 was pretty
    fast in this regard. I assumed it was regenerating the template into a java
    class, but I don't know for sure. 2) The timeout is not configurable by me
    (that I could find), but I have put in a request to find out what it is and
    whether they can set it on a per site basis. I would rather fix it on my end
    to eliminate the error though. Thanks for your help!! Ted Clapp Tteddo
    Designs [url]http://www.tteddo.com[/url]

    Tteddo Guest

  5. #4

    Default Re: Response Problem (cache?)

    This suggestion I would consider a "slimey hack", but you could store a flag in
    the application scope that simply tracks whether an "PagesCached" yes/no flag.
    In your application.cfm file, check this flag and if it does not exist in the
    application scope, or if it is not set to "YES", make an InitCache block that
    would use CFHTTP calls to all the time sensative pages. Set the timeout to like
    1 second -- just enough time to start the request. You are not expecting
    "valid" results, you are just trying to get the cache primed.

    Steve Sommers Guest

  6. #5

    Default Re: Response Problem (cache?)

    A slimey hack is how I avoided a $500.00 support call the Macromedia from a
    cffile problem, so I am open to anything! I'll give this a shot, and post back
    here with the details when I get it to work. Sounds like this will work great
    though. Thanks for your help! Ted Clapp Tteddo Designs [url]http://www.tteddo.com[/url]

    Tteddo Guest

  7. #6

    Default Re: Response Problem (cache?)

    Well, I implemented this today, and it appears to be working. The receipt comes
    up very fast now right after a reboot. Here's what I put in the Application.cfm
    file for each domain: <cfparam name='Application.PagesCached' default='No'>
    <cfif Application.PagesCached Is 'No'> <cfhttp
    url='http://www.whateverdomain.com/cart/receipt.cfm' method='GET'
    resolveurl='false' timeout='1'> <cfset Application.PagesCached = 'Yes'> </cfif>
    Thanks for your help!! Ted Clapp Tteddo Designs [url]http://www.tteddo.com[/url]

    Tteddo 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