Menu

#7 Don't always want to update the XML

open
PHP Code (5)
5
2007-09-05
2007-09-05
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.