Currently, Opencart doesn't generate cached versions of images until a visitor loads a page in which these images appear.
I've recently added a lot of new product photos, which means large portions of my site are going to be slowed down while they get cached.
Is it possible for me to manually generate a full image cache?
I've recently added a lot of new product photos, which means large portions of my site are going to be slowed down while they get cached.
Is it possible for me to manually generate a full image cache?
Thats a cool idea, there is prob a way to make a cron script or something to reiterate through all the OC entities. But in the meantime, you can initiate your own spider to hit all the sites pages using http://home.snafu.de/tilman/xenulink.html
This would effectively generate *all* caches. I would run it before you go to sleep or something later in the night. Make sure its throttled and threaded down some too or else you may crash your server because of too many requests
This would effectively generate *all* caches. I would run it before you go to sleep or something later in the night. Make sure its throttled and threaded down some too or else you may crash your server because of too many requests
https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.
Aha, that would work just fine. Granted this will only generate the category and product page images, but those are by far the most important ones in terms of page speed.Dhaupin wrote:But in the meantime, you can initiate your own spider to hit all the sites pages using http://home.snafu.de/tilman/xenulink.html
Thanks
It will hit any page that is linked to, including those from the sitemaps. So itll do manufacturer, info, contact, etc too.kittykat wrote:Aha, that would work just fine. Granted this will only generate the category and product page images, but those are by far the most important ones in terms of page speed.Dhaupin wrote:But in the meantime, you can initiate your own spider to hit all the sites pages using http://home.snafu.de/tilman/xenulink.html
Thanks
And @tjsystems what do you mean by a view all mod? Just a list? Getting all the products without pagination in a store is easy...just search for a space and put &limit=99999 at the end of the url. This will crash your tab and possibly server though on a large store
https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.
True. I had been thinking of cart/wishlist etc mini images that wouldn't be cached until someone added an item to such a list.Dhaupin wrote:It will hit any page that is linked to, including those from the sitemaps. So itll do manufacturer, info, contact, etc too.
probably this one:And @tjsystems what do you mean by a view all mod?
http://www.opencart.com/index.php?route ... on_id=7988
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
After many years I still can't find a good solution for this. Because of the OC behaviour, it is only generating image cache files, when the actual product page is opened I see full off 404 errors in apache log:
[Fri Jan 15 01:41:42 2021] [error] [client 66.249.76.4] File does not exist: /public_html/image/cache/data/ktlg/001166-370x300.jpg
[Fri Jan 15 01:42:28 2021] [error] [client 66.249.76.4] File does not exist: /public_html/image/cache/data/ktlg/052628-370x300.jpg
370x300 is the actual product image, which is missing, because Google is querying only the image.
I am also thinking to ignore cache system by using full images, just with set width. You say I will have speed issues? Generating x versions of image cache is not a lightweight task either.
Anyone has a good solution?
[Fri Jan 15 01:41:42 2021] [error] [client 66.249.76.4] File does not exist: /public_html/image/cache/data/ktlg/001166-370x300.jpg
[Fri Jan 15 01:42:28 2021] [error] [client 66.249.76.4] File does not exist: /public_html/image/cache/data/ktlg/052628-370x300.jpg
370x300 is the actual product image, which is missing, because Google is querying only the image.
I am also thinking to ignore cache system by using full images, just with set width. You say I will have speed issues? Generating x versions of image cache is not a lightweight task either.
Anyone has a good solution?
How patient one can be. It might seem a bit confusing as well as to know how, and maybe why, it might be your first post about it since on this topic.After many years I still can't find a good solution for this.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 333 guests