Don't always want to update the XML
Status: Beta
Brought to you by:
espadav8
As it currently stands, each time the PHP page is requested, it goes through every folder to create an XML layout which is then passed to the XSL and possibly saved to the gallery.xml file.
With large galleries this could be a slow point and also unwanted behavior (if, for example, you want to upload some photos but not have them shown until you do a manual update).
Therefore, if the XML file exists, and a flag is set saying not to create a new one, just load the old file, pass that to the XSL and end, rather than re-creating everything. If you don't want the XML file to be updated, but there isn't already one there then re-create it.