CS-Cart v4.16.1
Support tried to fix my site’s ‘slowness’ but it needs something from my end.
Any clues would be appreciated.
Support’s response:
“I have examined this issue in your store, and the slowdown was caused by the generating of thumbnails for images (as your store has a lot of heavy images).
To improve thumbnails generation performance, I enabled the lazy_thumbnails tweak in the config.local.php file by replacing the following line:
‘lazy_thumbnails’ => false, // generate image thumbnails on the fly
with:
‘lazy_thumbnails’ => true, // generate image thumbnails on the fly
This tweak makes the platform generate thumbnails only when they are requested, instead of all of them at once.
The pages started to load much faster with the enabled tweak, but the thumbnails weren’t displayed on the storefront (please see the attached screenshots). It is caused by an incorrect configuration of your server, which returns a 404 webpage for missing images instead of redirecting to index.php . This behaviour prevents the creation of thumbnails of images used on product pages. So I have disabled the lazy_thumbnails extension.
If you want to use this tweak in your store, you need to contact the server administrators and ask them to fix the problem with redirecting missing images to page 404 instead index.php .”
Approached the host but they referred me back to the developer.
Ultimately I don’t want to spend a lot speeding up a site that was just fine ( with the same number
of heavy images ) in previous versions.
This is not some obscure code by an alien race. It’s non-function should be easily diagnosed by
those in the know rather than become a ping pong game between host and developer.