Results 1 to 3 of 3

Thread: Caching issues config files

  1. #1
    Join Date
    Nov 2012
    Location
    Antwerp, Belgium
    Posts
    4

    Default 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. #2
    Join Date
    Oct 2008
    Location
    Belgium
    Posts
    160

    Default

    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
    Christophe Herreman
    Spring ActionScript Founder
    http://www.herrodius.com

  3. #3
    Join Date
    Nov 2012
    Location
    Antwerp, Belgium
    Posts
    4

    Default

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

    Anyway, thanks for your answer!
    Hans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •