that works nicely thanks - but only if it's under zenphoto/rebuild.php
is it possible to change to run from zephoto/zen/ & then leave it in SVN? that would be a useful addition.
Here is a routine which will do what you want. Copy it into your zen folder with the rest of the php files. Then point your browser to it.
`
`
If you don't want to do your whole gallery, just pass the file an album parameter with the name of the album you wish to process.
e.g. http://myalbum.zenphoto.com/zenphoto/zen/loadAlbums.php?album=newalbum
I'm using the latest script from sbillard on zenphoto 1.2.2. getNumImages() returns the count of images for each album but next_image() doesn't seem to be returning any images.
Any ideas why? Does anyone have an updated cache script? (I need it for my gallery migration)
Thanks,
grantonstar
THe main reason why is because it is unable to cache 17k images at once. Either it times out or the browser crashes.
The reason I want to pre-cache is to run the Gallery migration utility.
Are there any includes or bootstrapping code I need to add to the script to run it from the command line of the web server rather than through a browser? I'm working with images that are hundreds of MB, and I'm not allowed to change the web server's memory limits, but I can override the PHP memory limit on the command line.