My instance of bluga on konigi generated 297 thumbnails for a single site. Other sites generated anything from 6 to 139 thumbnails per site. I would have thought only 1 thumbnail is generated per size that you request. Is it the case that whenever someone goes to a page that requests a thumbnail, that the request is sent multiple times if no thumbnails exist yet, so that duplicates are generated? Hundreds of files on a shared server for the wanted 2 thumbnails is not a good thing.

CommentFileSizeAuthor
#4 bluga2.png41.21 KBjibbajabba
#4 bluga3.png30.12 KBjibbajabba
bluga.jpg109.67 KBjibbajabba

Comments

zostay’s picture

Yikes. I'll take a look at it this weekend. It should only be fetching each file once on demand, so that's bad.

zostay’s picture

Assigned: Unassigned » zostay

Looks like it's performing a new request on every request. Bad.

zostay’s picture

Status: Active » Fixed

Should now be fixed in CVS and will be in the dev-release the next time drupal.org builds it.

jibbajabba’s picture

Status: Fixed » Active
StatusFileSize
new30.12 KB
new41.21 KB

Andrew, I'm not sure this is working correctly yet. I deleted all the old files in my bluga directory, then downloaded and installed the latest development snapshot released today.

I have 347 nodes with images, and I call the medium2 and large size thumbs. There are presently 3024 files in the bluga directory with many duplicates of the smaller thumbs. The number keeps increasing as I view more of the nodes.

I attached screenshot of the images generated from one node, which produced 86 thumbnails. Also attached a screenshot of MySQL table in PHPMyAdmin, which shows the right number of entries.

Did I need to do anything besides delete the old generated thumbnails, upload the new module files, and run update.php? Seems like the bug is still exhibiting the same behavior.

jibbajabba’s picture

Status: Active » Fixed

I think this may actually be working correctly. I followed the following procedure:

1) turned the module off, deleted old thumbs, cleared the table.
2) turned the module back on, visited pages again.

Not seeing any duplicate images when I revisit the same pages, so the reinstall and cleared table must haved have corrected.

Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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