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
Seem reindexing is Flusing magento page cache #38705
Comments
Hi @ia-gaurav. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @ia-gaurav , Verified the issue on 2.4-develop and we see there is a decrement in the cache keys but we think it is as intended, as it is starting afresh. Steps to reproduce:- 1: wait for redis page cache size to grow We want know which keys shouldn't be deleted or cleared as particular, so that it will be easy to debug. Please refer the attached screenshots redis cache before reindexing redis cache after reindexing |
Hi @ia-gaurav , Waiting for your reply on this issue to move further. Thanks, |
yes - we should look for way to clear specific categroy or detail page cache instead of full cache flush, Also for product details page is there way to ignore utm and show cached data |
If you do a full reindex, it will go over every single product & category, so it makes sense that almost the entire cache will be emptied out. But a full reindex is something that almost never should happen on a production environment. During normal operation, where you don't run a full reindex all the time, only products/categories that are changed will then cause a partial reindex and only a small amount of cache should get flushed.
No idea if this is possible with Redis page caching, probably not, but switching to Varnish for FPC and using the default VCL Magento ships with, should already ignore the magento2/app/code/Magento/PageCache/etc/varnish6.vcl Lines 84 to 88 in c893121
|
@hostep thank for you valuable information , 1: is there way i can ignore marking query string using redis FPC |
|
@engcom-Delta @engcom-Hotel - can you please guide how to ignore marketing query string for Redis FPC also can this be added in future releases as it cause issues with high server response time |
Preconditions and environment
We are using Redis for cache and page cache , after reindexing redis seems flushing page cache in redis
Steps to reproduce
1: wait for redis page cache size to grow
2: Key in page_cahe of redis is around 20 k
3: we did reindexing on magento php bin/magento index:reindex
4: Keys in page_cache went down from 20 k to around 1.5k
Expected result
Reindexing should not flush page_cache in redis
Actual result
Page_cache in redis is flushed with number of keys in page_cache database of redis goes down
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: