XML Caching issue in FLex

烈酒焚心 提交于 2019-12-13 02:45:13

问题


private function loadGallery():void {
                theSend.url = "http://localhost/userMana/file.xml";
                theSend.send();
            }

I am calling this XML in Flex Tree and its works fine, but when after an update in XML it does not update back in my TREE unless i compile my flex builder again.


回答1:


I usually do this by appending the time to the XML url:

var now:Date = new Date();
theSend.url = "http://localhost/userMana/file.xml?" + now.getTime();
theSend.send();

non-cached every time.




回答2:


You could try flushing your local cache after you update. Stopping and starting "World Wide Web Publishing Service" (which is what it's called under Vista; XP will have a different name) should do it.



来源:https://stackoverflow.com/questions/1155270/xml-caching-issue-in-flex

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!