This page shows thumbnails of selected gallery's
pictures. For "some" installs, including mine, those
thumbnails load very slowly. I get about 30 seconds for
10 pictures, either from localhost or outside. Page
generation time is not problematic, around 0.6 seconds.
This behavior is easy to spot and reproducable although
browser cache may make it a bit harder to debug.
sQuare (now xing on #tikiwiki) also got this bug on
www.fca.at. He mentioned it on #tikiwiki a few weeks
ago, and later I realized I had the same thing. sQuare
spent some time trying to understand what was going on,
but failed until the bug "fixed by itself". I'm
consequently the only one left known to be experiencing
that bug. I have it on 3 non-upgraded DBs : a 1.8 CVS,
a 1.8.0 and a HEAD. File system storage and MySQL
storage won't influence. GIF pictures were also
affected. Instead of just being slow, it seems images
come by chunks. From localhost I get images by chunks
of 2 (this varies sometimes). xing tested my site and
said he got chunks of 4.
Trying to trace why this appeared I diffed 1.8.0 to
1.7.5, first in tiki-browse_gallery php and tpl which
are pretty much the same. Then I looked at
show_image.php. It didn't change much. But I found this
line added by mose (revision 1.12) :
header ("Content-length: ".$imagegallib->filesize);
I didn't check filesize() yet, but I would be 95% sure
that removing this line fixes (or improves the result).
Also, sQuare mentioned that the bug from his site
didn't disappear, but instead is almost not noticeable
anymore. He says his pics still come by chunks of 5 and
the trouble could be noticed with broadband.
Bug seemed to be browser-independent (Konqueror/Mozilla).