Hey all – just a quick update. The latest release does change some implementation for random galleries. We ended caching of random galleries on individual pages or posts. As of now, we are still caching random galleries for 30 minutes for widgets. So for widgets, you’ll get a fresh batch of images every 30 min or so.
We are talking about adding an option to turn that off for widgets, so widgets would return to their prior behavior of no caching.
As I think I’ve laid out, one major point to make: the use of true randomized widgets in the side bar is a major performance issue. The function call needed to go through all your images and select a random batch is costly, and when you put that random widget on the sidebar, that call is made every time any visitor loads any page on your site. If you have any substantial traffic, the cumulative cost of all those calls can be a major performance drain.
That’s the reason we’re still caching the widget. We’ve lowered the amount of cache time to 30 minutes, but that’s still plenty to prevent the performance drain.
The next step will be to add an option to turn off that caching. It’ll come with a performance warning though. We did consider alternative ways of ‘faking’ random galleries, but there were some implementation concerns for each approach we considered. Right now, we’re not looking at that.
For those of you wanting true random galleries via widget area – I assume you’d still continue to use them if we added the option, despite the performance concerns above?
FYI – if you’ve been using them in the past, you’ve been encountering the performance consequences already, and just weren’t aware. That’s why we fixed / adjusted it as we did. We’ve assumed performance > true random widgets.
Note again: we are not caching random galleries on pages or posts, because the effects of the random function calls don’t repeat on every page load site wide, and thus don’t have the same performance drain.