This is a fantastic image gallery! But pages with 50+ thumbnails take a long time to load and the CPU usage can get very high. I've turned on the built in cache and that helps but it's not perfect.
It would be nice if the cached files were actually resized image files or even better if the module made use of ImageCache or Image this would open up some nice possibilities for image manipulation as well.
Thanks.
Comments
Comment #1
vacilando commentedCaching has been dramatically improved in the new dev version (submitted today). Obviously, CPU load is always high at the initial run, when thumbnails are created, but after that they come from cache. In settings, you can now also specify the cache expiration time (in days).
Comment #2
superflyman commentedMy hosting company just hit me with a CPU overage charge and the majority of the load was carried by brilliant gallery. I love this module, think it's fantastic, but am just wondering when the dev code will be ported over to a new release? Thanks!
Comment #3
vacilando commentedYes, I've been dealing with that myself on some sites, esp. with loads of images.
Coincidentally, over the past few days I've released many bug fixes precisely in the caching system, and some optimizations as well. Make sure you use the -dev version now; it should mean a considerable relief for your server and/or wallet.
(Btw, it would be interesting to know what kinds of processes precisely did they specify as contributing to the CPU load - locating images in file system (are you using file cache?) or in the database, or was it the image resizing. That could help to focus further optimization.)
Comment #4
superflyman commented@vacilando They don't give me a breakdown but I'll try and check with them as see if they can tell me where the usage is taking place with the gallery function. Page caching and compression are currently turned-on. Is there a recommended min cache lifetime?
Comment #5
vacilando commentedUnless you modify your gallery images very often, then the cache expiration can be very long. Me, fetching many galleries from Picasa, I cache them for as long as 90 days.