Problem with CF Forms caching code changes

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Problem with CF Forms caching code changes

    Hi all,

    I've been having a problem with code changes in CF MX7 not being reflected
    when I test my programs.

    I have a very small form that includes a CFTREE ( but any control seems to be
    affected ). If I make a code change to show a different field within a control,
    it is not reflected when I rerun the code. Controls like a text box sometimes
    will not appear when added, even. I have verified that the new code is being
    moved in to the proper directory on the Apache server.

    If I take the seemingly affected code and paste the identical code into a new
    ..cfm file, CF7 will correctly display the results, so I know it's not a coding
    problem, or a file move problem.

    It seems like the old version of the form is being cached at the server ( I
    have cleared my browser cache ) On the CF Administrator, I have set the cache
    template and queries to 0. I also cleared the save class file option. Even with
    this setting, the new code changes are not appearing.

    HELP!

    TIA



    cgibbs-cra Guest

  2. Similar Questions and Discussions

    1. caching? problem with forms authentication and IE (but not Netscape?)
      I have a web application with at least three pages: /index.aspx (home page) /login.aspx (login page) /my/portfolio.aspx (private page - needs...
    2. Web Service Caching - code changes not reflected
      Hi, I have a webservice created in CF and the changes I make in the code are not reflected when I run it again... I tried the old method of...
    3. forms caching info
      Hello all- I have some forms setup for a doctors office. They work fine except that the form info is being cached, which is bad. There is a computer...
    4. possible caching problem
      I am trying to implement forms authentication in my asp.net app. I set the loginurl setting to be "login.aspx" at first and then I needed to change...
    5. ASP.Net, IE 5 & 5.01, Caching Problem
      Thanks Mark, I think that will solve my problem. A related question then would be, how can I write out these meta tags in code. All of my pages in...
  3. #2

    Default Re: Problem with CF Forms caching code changes

    All right,

    I still have the same problem, but if I press the 'Clear Template Cache
    Button' each time I change my code, it seems to work. Obviously this is not
    working as intended, ColdFusion does not seem to see changes made to my code
    within a file.

    cgibbs-cra Guest

  4. #3

    Default Re: Problem with CF Forms caching code changes

    This is getting stranger. I am using DW 8 to create my CFM files. I run
    through the save, put and preview process and quickly run into the same problem
    I describe above.

    However, if I use Notepad to open the file I put in the server directory and
    save it (without making any changes), CF will process the file correctly.

    GAAAAAAAAAAAAAHHHHHHHHHHH!

    cgibbs-cra Guest

  5. #4

    Default Re: Problem with CF Forms caching code changes

    Now that you mentioned you're using DW8, did you check the issues list ?
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=a3f38dcf[/url]
    mxstu Guest

  6. #5

    Default Re: Problem with CF Forms caching code changes

    You know, I completely missed this the first time I walked through that link.
    However, the answer is there.

    Thanks for making me look one more time.

    ------------------------ Answer below ( from the link )

    Viewing a file in a browser does not show recent updates (ColdFusion and
    Windows only)
    topic update: September 23, 2005
    Issue
    When viewing a ColdFusion page requested through a ColdFusion server, the page
    does not reflect recent changes made.

    (Ref. 199111)

    Reason
    This problem occurs because of the time stamp issue, and how ColdFusion
    servers cache pages. ColdFusion assumes the page has not changed since the
    timestamp has not changed, so delivers a cached page to the browser.

    The problem only occurs when the Remote and Testing server are accessed via
    the Local/Network site setting.

    Solution
    Two work-arounds are available.

    Preview in Browser using temporary files

    By previewing temporary files (Edit > Preferences, Preview in Browser
    category), each time the page is previewed a unique file name is used, so the
    caching issue is avoided.
    Uncheck "Maintain synchronization info" in the site's Remote Info section.

    NOTE: Site synchronization cannot be used if this option is unchecked. If site
    synchronization is needed, consider a different access option besides
    Local/Network.


    cgibbs-cra 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