Home › Forums › WoodMart support forum › Please provide me with a cache exclusion list for the mini shopping cart
Please provide me with a cache exclusion list for the mini shopping cart
- This topic has 16 replies, 2 voices, and was last updated 1 year, 3 months ago by
Artem Temos.
-
AuthorPosts
-
January 24, 2024 at 9:34 pm #533270
zhaozhaohongParticipantHello Dear friend,
Please provide me with a cache exclusion list for the shopping cart, checkout page, and my account page, especially for the mini cart that automatically pops up on the right after clicking “Add to Cart.
” I am facing the following issue: “Some users, after adding items to the cart, occasionally see ‘No products in the cart’ in the PC browser mini cart. They need to add items again or refresh the page. On mobile browsers, the situation is even worse. It shows 1 item, but the cart’s content only appears after refreshing the page. Additionally, if items are added again and the page is refreshed, the icon shows 4 items, but checking the cart reveals only 3 items.”I have taken the following steps:
1. The “Autoptimize” plugin I configured does not have delayed loading JS exception options. So at this step, I just attempted to exclude optimizing cartWidget. However, after testing, the mini cart did not pop up, I decided not to exclude cartWidget optimization.
2. I have already bypassed the cache for the shopping cart and checkout pages in both Cloudflare cache and fastcgi_cache.Thank you.
January 24, 2024 at 10:09 pm #533277
zhaozhaohongParticipantUpdate follow-up: After disabling the ‘Autoptimize’ plugin, the mini shopping cart pops up normally on both PC and mobile browsers. Is there anything specific I can do? Can we optimize excluding ‘clickOnScrollButton’ and ‘cart-fragments’? Are these two related to the mini shopping cart? Also, as mentioned earlier, if ‘cartWidget’ is excluded, the mini shopping cart does not pop up.
January 25, 2024 at 11:34 am #533397
Artem TemosKeymasterHi,
Could you please send us a link to your website where we can see this issue?
Kind Regards
January 25, 2024 at 11:40 am #533403
zhaozhaohongParticipantHello, the website is provided below in a private window. Additionally, attached is the copied content with excluded optimizations:
Exclude scripts from Autoptimize:jquery.min, helpers.min.js, clickOnScrollButton, searchFullScreen, menuOffsets, menuDropdowns, cartWidget, mobileNavigation, loginSidebar, menuSetUp, cart-fragments, slick, productImages, cookie.min, owl.carousel, owlCarousel, imagesLoaded, recaptcha/api.js, wp-includes/js/jquery/jquery.min.js, wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.min.jsJanuary 25, 2024 at 11:57 am #533417
Artem TemosKeymasterHello,
Please, disable all plugins that are not related to our theme and provide us with your admin access. We will log in and check what is wrong there. You can leave only the following plugins that are required for our theme:
WoodMart core
WooCommerce
Elementor/WPBakery page builderThank you in advance
January 25, 2024 at 12:02 pm #533419
zhaozhaohongParticipantHello, I have tested it, and it is due to the ‘Autoptimize’ plugin optimizing JS merging. Could you provide a more specific Ajax popup mini cart JS file for me to exclude?
Attachments:
You must be logged in to view attached files.January 25, 2024 at 12:55 pm #533445
Artem TemosKeymasterCould you please disable all other plugins except Autoptimize and send us your admin access so we can check?
January 25, 2024 at 1:03 pm #533460
zhaozhaohongParticipantok.
January 25, 2024 at 1:13 pm #533466
Artem TemosKeymasterSorry, but we can’t enter your dashboard with the information you provided.
January 25, 2024 at 1:28 pm #533476
zhaozhaohongParticipantHello, I tried it, and logging in twice in a row works. Now that I have turned off Cloudflare to bypass the /my-account/ cache, it is possible to log in normally in one attempt. Please try logging in again, starting from the website login. The URL provided in the last response was for the backend.
January 25, 2024 at 1:43 pm #533487
Artem TemosKeymasterCould you please test the shopping cart widget now and let us know if it works?
January 25, 2024 at 2:05 pm #533499
zhaozhaohongParticipantNow it’s working fine. Did you do something?
January 25, 2024 at 3:36 pm #533542
Artem TemosKeymasterWe switched to the parent theme in Appearance -> Themes. Try to switch back to the child theme and test how it works.
January 25, 2024 at 3:40 pm #533547
zhaozhaohongParticipantThank u! Can I log in now? After that, can I switch back to the child theme for production?
January 25, 2024 at 5:45 pm #533644
Artem TemosKeymasterSure, you can log in and switch to the child theme. Note that if it doesn’t work with the child theme then you have some custom code there that causes this issue.
January 25, 2024 at 5:52 pm #533651
zhaozhaohongParticipantOK,Thank u!
January 26, 2024 at 10:16 am #533779
Artem TemosKeymasterYou are welcome. Feel free to contact us if you have any further questions.
-
AuthorPosts
The topic ‘Please provide me with a cache exclusion list for the mini shopping cart’ is closed to new replies.
- You must be logged in to create new topics. Login / Register