-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FPC for unrelated products being cleared after editing a single product #25670
Comments
Hi @gibbotronic. Thank you for your report.
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:
For more details, please, review the Magento Contributor Assistant documentation. @gibbotronic do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento give me 2.3-develop instance |
Hi @gibbotronic. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @gibbotronic, here is your Magento instance. |
There is no data on that instance. I have tried adding 2 products and editing one but there are no indexers running on that instance and I have no way of forcing the indexers to run, so it is not a suitable test scenario for the bug. Due to the this I cannot fully confirm on that instance, so I am marking this bug as “reproducible” on vanilla 2.3.3.
yes <---------- YES |
Hi @engcom-Charlie. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Charlie Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
I'm debugging this for two years now and my findings are the same as yours. With the big difference that you were able to write it out and spend your time on that. I appreciate that. Unfortunately. Adobe is busy adding stuff to Magento no one needs while forgetting there are 1000+ open bugs and one of the most important bugs that isn't working in Magento: FPC. My servers are indeed contributing to millions of CPU cycles and the death of the Earth, because my cache warmer is warming up 1.3 million pages a day, trying to keep up the with cache flushes. I'm lucky that I've very fast and bad ass servers (multi Xeon - 40 cores 128GB RAM) Because, that is what happens if you have a busy Magento ecommerce shop.... It is saddening that this is the case. I really don't have faith someone within Magento even bothers to look at this at all. Because dozens of people are filing bug reports and they are being closed as not reproducable or they are eventually being closed because of inactivity. While this is something the core Magento team should fix as top priority instead of wasting time making paid modules no one wants to use. |
That's sad and a lot of pages to be updated! I am not sure how it can be fixed TBH as the logic is in too many places and in too many languages, some of which is interpreted by callbacks after the page is loaded. Instead:
I am sad to say that the entire system needs a rewrite for it to ever support FPC. I cannot possibly see how any component can deterministically answer the question "do you use this attribute?" in its current form, particularly as the event system is dynamic and therefore not statically analysable, ever. BTW, this extensible modular design leads to prolific non-optimised database loads because no component can ever know if another component needs the same info; eg. a fresh out-of-the-box installation will run 86 SQL queries just to display a product page, which is baffling overkill. |
seriously magento, why hasn't this gained more traction |
Is there any comment on this at all? It's been months since I reported it, and over a month since my last comment detailing my findings, where I do not see it being "fixable" in the current design. Comments???? |
It has something to do with the categories that are added to the Top Menu (that is the main menu bar of your shop). When you disable all categories for the top menu as a test (You wont see any menu items any more in your shop) and then save a product, you will see that the cache will only be invalidated for that product and not the other products. As soon as you enable the categories for the top menu again, the issue will come back. With the top menu enabled the products get a general cat_c tag. And saving one product will cause a flush for the cat_c tag and that means everything. When you disable the top menu categories, the cat_c tag will not be added to those products anymore. There are so many tickets about caching issues in Magento, but nobody within Magento seems to want to take a look at it. |
This issue will be addressed in the scope of internal ticket MC-32337. |
Hi @vzabaznov. Thank you for working on this issue.
|
Thanks for an update. What does this internal ticket involve? I cannot log in to see it. What will the solution involve? Each one I can think of has drawbacks:
So I would be interested in the proposed solution? How can I view this internal ticket? |
Don't get your hopes up. I've seen several issues that were assigned to an internal ticket and still are waiting to be developed after 3 years... |
That's a shame! How could you track their development if they're internal? |
You can't. At least not that I know. |
Hi all, a PR related to this ticket was merged here: f442fa9. The internal ticket was closed after merging this PR. |
All internal PRs with fixes had been delivered #25670 (comment) We can close this issue as fixed. |
Preconditions (*)
Steps to reproduce (*)
Load the demo store
Ensure that demo store is set to use FPC (Store > Config > System > Cahce > Full Page Cache
Load some product pages on the front end eg in Chrome. (Use the network tab in the browser inspector to note load time - TTFB should be ~700+ms ish)
Reload all pages. TTFB should be reduced to ~150ms ish as the pages have been cached.
Edit an unrelated product on the back of the site (not present in any related products etc).
e.g.You can move product from first category to second
Reload all front end pages one at a time. Note that the TTFB has now gone back up to ~700+ms indicating a clearing of cache, even though the only modified item was an unrelated product.
Note: This also applies to home page, categories etc.
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: