Galleries are super-slow?
Permalink
Hey there, I just moved my site to a new server, and everything seemed to come off without a hitch, save for one single thing: The gallery page. Seems that clicking one of the links to a subsequent page is really, really slow.
I've just signed up to get a VPS account with my hosting environment, but I'm honestly a little unsure this will help, as none of my other sites seem to be having problems.
http://www.bluesoundconstruction.com/gallery...
I've disabled/re-enabled caching. Full-page caching is off. Checked the add-ons, everything's updated (have not updated to 5.5 yet)
My client is about to hit the busy season, so it's pretty important to have these galleries up. Thoughts?
I've just signed up to get a VPS account with my hosting environment, but I'm honestly a little unsure this will help, as none of my other sites seem to be having problems.
http://www.bluesoundconstruction.com/gallery...
I've disabled/re-enabled caching. Full-page caching is off. Checked the add-ons, everything's updated (have not updated to 5.5 yet)
My client is about to hit the busy season, so it's pretty important to have these galleries up. Thoughts?

My first guess is that the galleria javascript thingy you're using has the wrong url's to its supporting images, so the browser is trying to load some images that it can't find, which may be causing the page rendering to be delayed. Use firebug or web inspector to investigate these missing assets and see if you can fix that first.
Well, firebug shows that the images are being pulled from cache, but the default locations of the images in the fileset show the correct path. I went ahead and rescanned them anyway, but it did not help. Any other thoughts?
Strange... it's not giving me the missing images now (although I swear it was yesterday). Now it's taking 22 seconds for the page to start sending output to the browser. This is very wrong, but I have no way of knowing what the problem is since it's something on the back-end. Strange that it's only happening on that one kind of page. Might be something in your theme template for that page type or perhaps a block that's on that page?
Sorry, wish I could give a more specific answer.
Sorry, wish I could give a more specific answer.
I talked to the creator of the add-on and they told me that it looked like the thumbnail caching was turned off. They had me comment out a line in the imageresizer.php file, after which, the page load time decreased pretty dramatically. They told me if this happened, that either our file permissions were off or our server was setting file name length restrictions.
I've checked and it looks all of these are set to 755
Files
Files/Cache
Files/Thumbnails
Files/Tmp
And any random image I pulled had these same file permissions also. Should it be 755 or something else?
I've checked and it looks all of these are set to 755
Files
Files/Cache
Files/Thumbnails
Files/Tmp
And any random image I pulled had these same file permissions also. Should it be 755 or something else?
It depends on how your server is set up. Usually 775 works, but I've installed sites on some servers where I have to set the entire /files/ directory to 777 (and this needs to be applied recursively). Make sure your /files/backups/ directory doesn't have backup files stored in it though (or change that one directory's permissions to something more restrictive after the recursive setting of 777 on everything else).
I also adjusted all the images in one of the galleries resized to fit the max-width of the gallery container. Still didn't help. Hm.