I am obtaining an XML file from a remote server which contains fairly static data. Here is my code:
$dom = simplexml_load_file("foo.xml");
foreach ($dom->bar->baz as $item) {
echo $item;
}
Since the data is rarely changing, there is no need to ping the server on each page load...How can I cache foo.xml in a simple manner? Keep in mind that I am a beginner...
Thank you!