Thanks. I read through the Object model documentation, and any other documentation I could find on updating metadata, but could not find any information on this (nor did a full site search for "mtime" reveal much).
You said:
Quote:BTW, you could actually update the mtime of the files and folders, since Zenphoto compares that to the value retained by the object.
This sounds very promising, but I'm having trouble reproducing it. I make a test album, call it "album". Since it's new, zenphoto creates a new zp_albums entry for it, recording its mtime, and the metadata from the album.xmp sidecar file I also created. So far so good.
Later, in the albums filesystem on the server, I change some metadata in the sidecar file, and then update the mtime on both the album directory itself and album.xmp file (using touch, verified by stat). Then I reload the album in the zenphoto browser window. Nothing has been updated; the old information persists in the database. I reload its parent album, still no update. I edit the album and clear the cache. Still outdated. [b]Only[/b] if I edit the album and `Refresh Metadata` (which typically hangs in a reloading state) is the zp_albums record updated with the new mtime/metadata.
So, apologies if I'm missing something basic, but I'd love to know if it's possible to, as the thread says, mark an album and/or image dirty by (for example) updating its mtime, so that any metadata within it will be reread from disk, and the corresponding database record updated, the next time it is accessed or displayed?
Thanks and sorry for the slow uptake.