Announcement Announcement Module
Collapse
No announcement yet.
Caching issues config files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Caching issues config files

    Hi there,

    I'm having some issues with caching of the config files.

    What I do is:
    _applicationContext = new FlexXMLApplicationContext();
    _applicationContext.addConfigLocation("resources/applicationContext.xml");
    _applicationContext.load();

    Now, whenever I do an update of applicationContext.xml and upload this file,
    the file in the cache keeps getting loaded in my app.
    I have about 300 user for my app worldwide, and a lot of them don't know too much about computers and clearing cache etc.

    I know there's this wordaround where you add a date or a random number to the end of the path of your UrlRequest, but since the load() function is hidden in the framework, I can't implement this of course.

    So my questions are:
    - is there a property that forces this workaround?
    - Am I the only one running into this issue?

    Thanks in advance!
    Hans

  • #2
    Hi Hans,

    sorry for the delay on this message. I was not notified of the activity on the forum.

    About your issue, we used to append a random value to the URL by default but that caused problems with AIR applications that loaded context files locally if I remember correctly.

    You can normally just append a value yourself like this:
    _applicationContext.addConfigLocation("resources/applicationContext.xml?r=" + new Date().time);

    cheers,
    Christophe

    Comment


    • #3
      Yes, i figured this out as well.
      I should've given it a bit more thought before posting

      Anyway, thanks for your answer!
      Hans

      Comment

      Working...
      X