Post by mandom » Thu Mar 28, 2024 11:22 pm

"I have some questions regarding caching issues in OpenCart 3.0.3.9 with PHP 7.4 Makali Theme. Let's say a customer visits my website, and then after I make some changes to the website, the customer revisits. However, they're still seeing the old settings. For example, the default currency was USD but changed to THB. Even though we've set THB as the default, returning customers still see USD. However, when they open the website in incognito mode, they see the correct currency as THB.

We can't expect all old customers to clear their browser cache every time they visit our site after we make changes. Is there anything we can implement on the website to trigger a cache refresh for visitors' browsers?"

New member

Posts

Joined
Tue Jun 30, 2015 4:44 pm

Post by nonnedelectari » Thu Mar 28, 2024 11:49 pm

Currency and language is recorded in cookies.
So, even if your default currency changes, a returning customer will get the currency he previously selected as it is still recorded as such in the cookie in his browser. This is as it should be.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by mandom » Thu Mar 28, 2024 11:52 pm

nonnedelectari wrote:
Thu Mar 28, 2024 11:49 pm
Currency and language is recorded in cookies.
So, even if your default currency changes, a returning customer will get the currency he previously selected as it is still recorded as such in the cookie in his browser. This is as it should be.
Ok got it! so this applies only for Currency and lang... Thanks again!

New member

Posts

Joined
Tue Jun 30, 2015 4:44 pm

Post by paulfeakins » Thu Mar 28, 2024 11:57 pm

mandom wrote:
Thu Mar 28, 2024 11:22 pm
We can't expect all old customers to clear their browser cache every time they visit our site after we make changes. Is there anything we can implement on the website to trigger a cache refresh for visitors' browsers?"
There are various ways, you could change the cache headers, or add URL variables to your JS files and CSS files.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Bing [Bot] and 18 guests