ADD Creative wrote: ↑Fri Sep 22, 2023 8:10 pm
You have some extension that hides elements with catalog/view/javascript/hideprcprd/def/common.css and unhides them later. Try to work out which extension in is the disable it to see if anything improves.
The thing is nothing was changed on the site side between it loading in milliseconds and suddenly having this large delay. No new extensions or plugins have been installed for several weeks.
The contents of the file you mentioned:
.price, .col-sm-4 ul.list-unstyled{opacity:0;}
That's it, nothing else in it at all.
WaxedPerfection wrote: ↑Fri Sep 22, 2023 9:51 pm
Your store getting slower and slower because of the extra database queries that are being run to get the total product counts - turn these off.
Home >Stores> Settings> Options> Products "Category Product Count" Off
it does show a warning to having these turned on.
"Show the number of products inside the subcategories in the storefront header category menu. Be warned, this will cause an extreme performance hit for stores with a lot of subcategories!"
also see
https://www.antropy.co.uk/blog/speed-up ... ed-issues/
How To Speed Up OpenCart (and/or Fix Speed Issues)
I gave this a try, but turning that on or off doesn't make a difference. Additionally, no new categories have been added for several months, yet the issue only started, seemingly out of the blue, a few days ago.
I've also been through the link you sent,
- Turn Off Category Counts - no difference
- Install a Good Caching Extension - there isn't a caching extension other than LightSpeed, and with how frequently the pricing and products change this could pose a problem. LightSpeed can already be a problem when pricing is changed from the product listing without editing a product (I use Admin Quick Edit Pro, which, from Catelog -> Products allows you to edit the price by simply clicking on it) as that doesn't purge the cache until clicking "Purge LightSpeed Cache at the top right, while editing a product directly does. If I don't purge the cache, the edited product shows the incorrect price until added to cart. Seeing as the delay is in showing availability and price, I think that even caching everything other than price/qty would have the same issue
- Add Database Indices - this seems unrelated, "but every 5-10 minutes it would slow right down and pages would take 20+ seconds to load" - the slow loading isn't random, and certainly isn't that slow. Searching is also quite speedy.
- Trim Error Log Files Automatically - the log file is relatively empty...
- Fix the Code to Remove Notices and Warnings - ...mainly because of this
- Use a CSS-only Theme - my theme is the default theme with some edits, all CSS
- Use CloudFlare - I had to disable this because of massive caching issues, even worse than those I described for LightSpeed (I can't purge the CloudFlare cache without requesting my hosting company to do so, and it is bad enough that massive changes such as the homepage layout being changed could take hours to reflect)
- Reduce the filesize of your images - images are already small by modern standards, and the image loading isn't the problem
- Make Sure You're Not Suffering from the vQmod "checked.cache" Issue - the file is 20KB
- Make Sure Your /tmp Folders Aren't Filling Up - less than 2MB there
- Consider switching database tables' engines to InnoDB - this seemed promising, but on reading the paragraph... This isn't a massive store (fairly large by South African standards, but certainly no Amazon or NewEgg, LOL) and even if the database requests were piling up for an hour at a time there aren't enough for it to be much slower than instantaneous.