Hello all,
I am running 3.0.7 and everything is fine and dandy. However I turned on server side cache to help the store run better and faster. It worked and the site is now much faster. However, in some cases its too fast and the cart tracking is being lost. For instance I add 2 things to cart. Move around site, and go back to homepage and it shows 0. I know its because the page is now showing as cache.
Is there a way to block an element itself like the cart, from cache? On the server side I only see options to block pages from being cached. But for opencart that doesnt work since its all pages.
Any ideas?
Caching the PHP generated content is not a good idea. Unfortunately there is a bug in 3.x in that it does not set any cache control headers.
viewtopic.php?f=202&t=206449#p786660
If you did want to cache the PHP generated content you would need an extension that loads the cart data after the main page loads. There are a few, but I wouldn't say they are without issues. If your server is running LiteSpeed there is an extision that does that.
https://www.litespeedtech.com/products/ ... celeration
viewtopic.php?f=202&t=206449#p786660
If you did want to cache the PHP generated content you would need an extension that loads the cart data after the main page loads. There are a few, but I wouldn't say they are without issues. If your server is running LiteSpeed there is an extision that does that.
https://www.litespeedtech.com/products/ ... celeration
You wouldn't enter your bank PIN and just randomly miss digits and expect it to work would you?
Equally, OpenCart versions are 4 digits so presumably you mean 3.0.3.7.
You think there's only 1 server-side cache in the world?
You'd better get in the habit of giving accurate and specific information if you want help.
For example some server caching tools like https://www.litespeedtech.com/products/ ... celeration can cache full pages or parts of pages, but unless you tell us what one you're using, no one is going to be able to help.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Thanks sir! I appreciate the reply and reference. I will look into LiteSpeed. I had since downloaded the lightning extension (That needs $100 license) and it fixed all my issues visually, but I am not so sure on the backend. I will uninstall that one, and try LiteSpeed.ADD Creative wrote: ↑Fri Sep 17, 2021 4:19 pmCaching the PHP generated content is not a good idea. Unfortunately there is a bug in 3.x in that it does not set any cache control headers.
viewtopic.php?f=202&t=206449#p786660
If you did want to cache the PHP generated content you would need an extension that loads the cart data after the main page loads. There are a few, but I wouldn't say they are without issues. If your server is running LiteSpeed there is an extision that does that.
https://www.litespeedtech.com/products/ ... celeration
Thank you again.
Who is online
Users browsing this forum: Semrush [Bot] and 408 guests