I just used cache-images.php as an example. It runs real damn fast now but I haven't tested it enough. I called it "cache_em_all" , make sure its in your zp-core directory and don't forget to chmod u+x so you can run it.
EDIT: i just noticed that the forum killed all my escapes. LINK: http://zp.damnit.org/zp-core/cache_em_all.txt
`
`
Thanks for the links acrylian. I didn't think there where any limitations on pictures or albums though. It's just that loading over 12,000 images on a single page when trying to pre-cache everything on a site like mine poses problems. Pre-caching from a shell worked like magic and was about 1000x faster.
I wrote and posted a PHP shell script that pre-caches all your images in all albums from the command line. It doesn't delete the existing thumbnails because thats what works well for me. See my 2nd post for the link, i added .txt to the end to make it browser safe.