# Xml(php)cache help needed

**URL:** https://forum.kirupa.com/t/xml-php-cache-help-needed/248218
**Category:** programming
**Created:** [January 5, 2008, 5:18am UTC](https://forum.kirupa.com/t/xml-php-cache-help-needed/248218 "2008-01-05T05:18:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nnnswordfish](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@nnnswordfish](https://forum.kirupa.com/u/nnnswordfish)
#### Post date: [January 5, 2008, 5:18am UTC](https://forum.kirupa.com/t/xml-php-cache-help-needed/248218/1 "2008-01-05T05:18:33Z")

</div>

Hi again 🙂 my action script file loads an XML file, dynamically created with PHP ,  
These are the lines which load the xml object in flash.

```auto

menuXML = new XML();
        menuXML.ignoreWhite = true;
        menuXML.load("mp3a.php");

```

mp3a.php scans files and folders in mp3/a directori on my apache server and then creats list.  
But when i open my site in browser and then close it and open it again xml doesnot caching and starting sacan mp3/a dir again, i use apache server 2.x and here is my qwestion ,its my apache problem or my as script problem? Wat can i do to cach this xml ? And is it posiible to cache it about 1 day?or12 hours? 🙂
