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

vacilando’s picture

Version: 6.x-3.4 » 6.x-3.x-dev
Status: Active » Fixed

Caching 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).

superflyman’s picture

My 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!

vacilando’s picture

Yes, 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.)

superflyman’s picture

@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?

vacilando’s picture

Unless 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.