Hi,
This site is in maintenance mode right now so I can't give you access but the thumbnails are loading really slowly and don't seem to get cached at all. Any tips on how to get this running faster?
Thanks,
EC
We've got a variety of resources to help you get the most out of the WordPress e-Commerce plugin. Your first stop should be our documentation, where you'll find information on everything from installation to design and theming your shop.
Hi,
This site is in maintenance mode right now so I can't give you access but the thumbnails are loading really slowly and don't seem to get cached at all. Any tips on how to get this running faster?
Thanks,
EC
Have you optimized the images? Use photoshop to make sure the images are the correct size (and not scaled down via the height and width attributes in your <img> code) and try to save down the quality to about 30%. That usually speeds things up pretty significantly.
Oh - yes sorry I should have said. I use photoshop and they are fully optimized. They just don't cache at all and I'm not sure if this is wordpress set up issue or a wpecommerce plugin issue. Please can anyone help with this??
OK I have found the answer - there is a bug in grid view as described in this post:
http://www.instinct.co.nz/forums/topic.php?id=6635&replies=18#post-32151
I have no idea why this hasn't been fixed in the latest upgrade though? Support? Anyone? Bueller?
I'm not using grid view, just the product category, product specials, and latest product widgets.
When you mean 'optimize the images', how do I know what the correct size is? There is a quality option in Photoshop when saving as a PNG or just certain type?
There are no caching options (WP Cache?) that will also help speed things up?
Thanks for your tips.
"...the answer - there is a bug in grid view as described in this post: http://www.instinct.co.nz/forums/topic.php?id=6635&replies=18#post-32151"
That link doesn't work. meh. I'm having the same issues.
And I keep following dead links all over this forum. I keep thinking I find an answer to be sent to a "Not Found" page over and over. Sigh.
Hi sonya, there's an issue migrating links across from the old Instinct forum to Get Shopped; we're all int the same boat until the week starts...
I can't help with the grid view fix I'm afraid. But you should definitely add the following line to your wp-config.php
define ('WP_CACHE', true);
which will help until we've found the other fix and will even be a good thing to have on when you've found the fix.
Maybe this?
For those with the same problem, open the grid_view.php of your theme and look around line 88 for
<?php echo wpsc_the_product_image($image_width, $image_height); ?>replace with:
<?php echo wpsc_the_product_thumbnail(); ?>
For the old links probelm just replace instinct.co.nz with getshopped.org in the URL so your link would go from THIS:
http://www.instinct.co.nz/forums/topic.php?id=6635&replies=18#post-32151
TO THIS:
http://www.getshopped.org/forums/topic.php?id=6635&replies=18#post-32151
thanks lee!
this:
For those with the same problem, open the grid_view.php of your theme and look around line 88 for
<?php echo wpsc_the_product_image($image_width, $image_height); ?>
replace with:
<?php echo wpsc_the_product_thumbnail(); ?>
worked wonders for my grid view.
Hi Everyone, Lee- thanks for posting that was exactly the fix I had mentioned to solve slow gridview loading. I am also finding the category grid images load very slowly, any thoughts on how on earth we can speed this up? Is super cache the answer??
If you haven't already - make sure you've got:
define ('WP_CACHE', true);
set in your wp-config.php file. This will make timthumb store a cache of resized images, and use them where possible. If you still want to up performance, then something like WP Super Cache, or W3 Total Cache can help a lot (Particularly with merging, and minimizing CSS / JS).
Alternatively - there might be a similar problem with category grid images - can you post a link to your site - we should be able to tell.
OMG THANK YOU GETSTEVE! yay!
Added this to trunk, just FYI the first code was wp-e-commerce trying to cache stuff, the second code bypasses the cache by wp-e-commerce, so now grid view has no cache,,,,
Doesn't timthumb cache anyway if WP_CACHE is defined as true (E.g. in wp-config.php)?
Hi Lee
Thanks for your suggestions here. I replaced <?php echo wpsc_the_product_image($image_width, $image_height); ?> with
<?php echo wpsc_the_product_thumbnail(); ?> as per your suggestion and it worked perfectly. I also made the changes in the single_product.php file.
Are you able to point me in the right direction to fix the gallery thumbnails? I have have a look but not sure where to find the code that calls the thumbnails. When in gallery view the larger images load faster than the gallery thumbnails!
Thank you.
I'm afraid I have no idea - I don't have the gold cart code :)
Thanks so much for replying. I might try over in the gold cart area... which is where I should have probably asked the question in the first place!
I think the code for the gallery is in upgrades/gold cart files/gold_shopping_cart.php and is in a function called: gold_shpcrt_display_gallery.
If you make any improvements could you post the info so we can do the same? Thanks!
We're having thumbnail load time issues on our site as well. Lee's suggestion makes sense and we implemented the function change to load thumbnails but the wpsc_the_product_thumbnail() function results in the same URL, param string and load time as the original function call. An example URL that loads the product thumbnail image is,
http://www.stacorflatfiles.com/flat-file-cabinet-store/index.php?productid=1&width=96&height=96
load time: 1.3s
The cached image that comes back to us from that URL is,
http://www.stacorflatfiles.com/flatfiles/wp-content/uploads/wpsc/cache/product_1_96x96.jpg
Calling the image URL from our browser we see load times of about 0.238s. Big difference. All our static content (CSS, JS, post images, etc) is being served from our CDN cloudfront. Although we can't use that solution with WPSC for product images (true?), the load time for WPSC cached images from our server is reasonable (0.238s)
With 8 prodcuts on a page using gridview (gold cart) we're seeing page load times of 4s to 7s. YSlow gives a response time of 2.8s for each of the thumbnails. We do have other sites that share the same host however their response times are less than 2s so we don't think DB access or the hosting provider is the issue. Even the front page of our site using WPSC responds quickly when there are no product thumbnails to show (no widgets like latest products etc). So, in a phrase, we're stumped. Any thoughts would be aprpeciated as we'd like to figure this one out and share what we've learned.
Config.
Site: http://www.stacorflatfiles.com
WP 2.9.2. originally tested with wp 2.8.6, same type of results.
WPSC 3.7.5.3. gold cart.
Caching solution W3 Total Cache.
-wp-config.php cache set to true.
-disk based cache, page cache, database cache, minify all turn on and working.
-CDN is cloud front for all static content
.htaccess - Deflate turned on, cache for images turn on, WP rewrite turned on. Memory at 128M.
Good test page for YSlow or pingdom results results - http://www.stacorflatfiles.com/flat-file-cabinet-store/flat-file-cabinet/
Hey, did you find anything?? I'm having the exact same problem and can't find a fix...
I also implemented the two changes here and am still facing very slow loading on the grid pages.
Examples:
http://catewhite.com/wordpress/?page_id=81
http://catewhite.com/wordpress/?page_id=79
Please, does anyone have any more ideas?
Thank you.
@leewillis77 - thanks so much for this!
replacing
<?php echo wpsc_the_product_image($image_width, $image_height); ?>
with:
<?php echo wpsc_the_product_thumbnail(); ?>
was the solution!
You must log in to post.