Problems with cache - PHP returns always the same XML

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Problems with cache - PHP returns always the same XML

    Hello,

    I've develope an aplication in Flash MX 2004, using PHP&XML to comunicate the
    aplication with the DDBB.
    Then, If I load an XML object in flash
    XMLObjet.load(....program.php?variables...) all is ok, I've all the data that I
    need, but if I change the values in the DDBB and without closing the explorer I
    ask again to load the XMLObject, then it returns the same XML.

    I've tryed to configure the explorer to ask allways if the document has
    changed (in the tools menu, temporary documents or cache) and then it works.

    But I need that everytime that I reload the XMLObject, it takes the current
    information in the database, not from the cache. And it must work in every
    explorer with any configuration.
    ?Could anybody help me to do that??Does anybody knows how to re-load allways
    the information from the dataBase without cache?

    Thank's a lot.
    Hugo.

    HuguerasVagueras Guest

  2. Similar Questions and Discussions

    1. Problems with Trust Cache
      :confused; We are having a problem with response time to our webservers running CF ver. 5 . This started after a template change was made by our...
    2. Cache DataGrid Datasource, Add/Delete rows and rebind problems
      Hi all, Is there any way to cache the Datasource of datagrid and allow to add/delete row in cache, then rebind the datagrid from cached...
    3. Cache with Callback problems... threading?
      I'm having a problem using the Cache object with asp.net. Here is what I have: 1) I put something in cache and set its callback method. 2) The...
    4. Safari Cache problems with Flash in DWMX?
      I have a flash site created in DWMX. A button on the page in flash pops up a new window, containing flash navigation to choose between different...
    5. PB1400C/NUpowr G3 1400 cache problems
      Hi folks, Some time ago the control panel for this hardware started to refuse to take any backside cache speed setting, stating that too high a...
  3. #2

    Default Re: Problems with cache - PHP returns always the sameXML

    Hello. I think I have read taht you can use META tags in HTML to tell the
    browser not to cache the data. Sorry I don't remember the command but it may
    be worth a look. I'll try and find the command and post it.

    andersonsidney Guest

  4. #3

    Default Re: Problems with cache - PHP returns always the sameXML

    Thanks, but I'm not using HTML but XML. If you know any tag for XML to tell the
    browser not to cache the data it'll be the solution. The HML meta tag, I think
    that's not the soolution because i'm not using HTML (only the one that contents
    the flash object)...

    Thnak you very much.
    Hugo.

    HuguerasVagueras Guest

  5. #4

    Default Re: Problems with cache - PHP returns always the sameXML

    Your call to the php-script should be unique every time. For instance, generate
    a random number and add that number to your query-string. Or use this method
    (thanks to David Powers):
    "http://www.mydomain.com/program.php?ck="+new Date().getTime()


    LuigiL Guest

  6. #5

    Default Re: Problems with cache - PHP returns always the sameXML

    Fantastic!!

    I think it's the most simple solution for my big problem, but I think it's the
    better too!
    I'll try and i'll post the result, but i'm sure it'll works perfect.

    Thank you very much Luigi. You have saved my neck ;P (I hope)

    HuguerasVagueras Guest

  7. #6

    Default Re: Problems with cache - PHP returns always the sameXML

    I am also facing this problem. Could you get the solution of it. I will appreciated your help.

    Thanks
    Sumant
    Sumant Agwekar Guest

  8. #7

    Default Re: Problems with cache - PHP returns always the sameXML

    Sumant,
    You call (in a onLoad handler for your LoadVars-object) to a php-script should be like this:
    "http://www.mydomain.com/program.php?ck="+new Date().getTime()
    LuigiL 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