Home › Forums › WoodMart support forum › Wishlist not updating on first visit and only appears after reload
Wishlist not updating on first visit and only appears after reload
- This topic has 3 replies, 3 voices, and was last updated 1 month, 2 weeks ago by
Artem Temos.
-
AuthorPosts
-
June 5, 2025 at 11:40 am #665502
tomassParticipantHey,
We’re using the Woodmart theme with WooCommerce and no user login system. The wishlist feature works, but only after reloading the wishlist page.
Here’s the exact flow:
1.User adds a product to wishlist (in this case it can be done on homepage) .
2.They visit the wishlist page (/wishlist) immediately after.
3.The wishlist displays: “This wishlist is empty.”
4.After refreshing the page, the wishlist loads the product correctly.We initially suspected a caching issue. We use LiteSpeed Cache, and have excluded the wishlist page from caching. We also tested with CookieYes disabled — no change. This issue also occurs on different site, but on that site there is no caching plugin activated.
It seems Woodmart isn’t detecting or rendering the updated wishlist on initial page load and wishlist products don’t appear unless the user reloads the page.
Could you confirm if this is a known issue? And is there a recommended way to force the wishlist to re-render or refresh when the user first visits the wishlist page?
June 5, 2025 at 2:34 pm #665570
Artem TemosKeymasterHello,
We checked your video and can clearly see that it is related to some kind of cache. Most likely a browser cache for this page. But when we visit your website, we don’t see the problem. Here is a video https://gyazo.com/f1b51249acaa81a977f67770ec955826
Kind Regards
June 5, 2025 at 3:42 pm #665603
tomassParticipantHey again,
Thanks for your help so far. We’ve continued investigating this issue and can now confirm the following: the issue does not occur on Firefox or Safari, but it does occur consistently on Google Chrome (both regular and incognito) and Microsoft Edge.
When testing locally in Chrome the issue does not appear. We’ve now tested multiple sites and they all show the exact same issue in Chrome and Edge.From what we can see, this probably isn’t a a server or browser cache issue, but rather a JavaScript timing problem that happens in Chromium browsers.
And is there a recommended or officially supported way to fix or work around this issue for Chrome and Edge?
June 6, 2025 at 10:39 am #665726
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to fix this
add_filter('wp_speculation_rules_href_exclude_paths', function ($exclude_paths) { $exclude_paths[] = '/wishlist/'; return $exclude_paths; });
-
AuthorPosts
- You must be logged in to create new topics. Login / Register