magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.52k stars 9.31k forks source link

Magento 2.4.2 Uncached After Placing Order #33650

Closed hasnatme closed 3 years ago

hasnatme commented 3 years ago

Preconditions (*)

  1. Magento 2.4.2 (CE)
  2. Varnish Cache or FPC

Steps to reproduce (*)

  1. Place order with any products from any category as customer.
  2. Place order from admin panel with any products from any category.

Expected result (*)

  1. Magento should purge cache for varnish only for the product by tag. And rest cache should remain intact.

Actual result (*)

  1. However Magento registering full varnish cache to be purged and the whole store becoming unchached again. As a result slow user experience again and again as long as customers kept ordering.
  2. Without placing any orders or changing anything, no cache is being purged until varnish TTL expires.

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 3 years ago

Hi @hasnatme. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

mrtuvn commented 3 years ago

Seem unclear information or miss evidence Can you provide more details in the case varnish used which varnish version that you used + vcl config please share? Problem can reproduce in vanila clean installation 2.4.2 or reproduce only happen in your working instance Case 1 Both enabled varnish + FPC Case 2 Enabled Varnish Disabled FPC Case 3 Disabled Varnish Enabled FPC

As i remembered in checkout page FPC will not available (non-cache) by default and varnish will bypassed too

hasnatme commented 3 years ago

Hello,

This is my website www.banglashoppers.com you can check yourself by placing an order, you do not need to pay as we have cash on delivery system. My Hosting is cloudways.com. Please note, it is doing after couple of min, not instantly.

Using latest 2.4.2 CE with FPC and Varnish-6.0.7 revision 525d371e3ea0e0c38edd7baf0f80dc226560f26e

rvanwilgen commented 3 years ago

Seems related to issue #30128

mrtuvn commented 3 years ago

Turn out after place order with some deduct amount products internal code do some stuff to resync and clear cache. Seem this relate

mrtuvn commented 3 years ago

@hasnatme Can you update more details? So you have stock Inventory used ?

m2-assistant[bot] commented 3 years ago

Hi @engcom-Lima. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Lima commented 3 years ago

Hi @hasnatme,

This issue seems duplicate to #30128.

Can you please check and confirm if you are having same problems ? If yes, we can close this issue since 1 issue is already open and you can follow up other thread.

engcom-Lima commented 3 years ago

Hi @hasnatme,

This ticket is duplicate to #30128 hence we are closing this one. Please follow up on other issue for the update.