Skip to content
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

Category page X-Magento-Tags headers contains product cache identities even which category display mode is set to "Static block only" #12466

Merged
merged 2 commits into from Dec 1, 2017

Conversation

atishgoswami
Copy link
Contributor

@atishgoswami atishgoswami commented Nov 28, 2017

Description

When varnish is selected as the cache engine, If there are products associated to a respective category, and the category display mode is set to Static block only, on the category page X-Magento-Tags headers contains product item cache identities even when no product is displayed for the page.

screenshot_2

This PR will:

  • Prevent the Magento\Catalog\Model\Product::CACHE_TAG cache identities to be generated if the category page Display Mode is set to Static block only

screenshot_3

Fixed Issues (if relevant)

None, code improvement

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@miguelbalparda miguelbalparda self-assigned this Nov 28, 2017
@miguelbalparda
Copy link
Contributor

This is very interesting, will check in detail and report back. Thanks @atishgoswami!

@miguelbalparda
Copy link
Contributor

This is in process of merging. Can you please port your changes to 2.1 and 2.3? Thanks a lot!

@atishgoswami
Copy link
Contributor Author

@miguelbalparda Thanks for reviewing it so quickly.

I will create 2 new pull request for porting to 2.1-develop and 2.3-develop branches

@magento-team magento-team merged commit bea9012 into magento:2.2-develop Dec 1, 2017
magento-team pushed a commit that referenced this pull request Dec 1, 2017
…cache identities even which category display mode is set to "Static block only" #12466
This was referenced Dec 2, 2017
@atishgoswami
Copy link
Contributor Author

@miguelbalparda Created 2 new PRs #12523 and #12522 for magento version 2.1 and 2.3

okorshenko pushed a commit that referenced this pull request Dec 11, 2017
 - Merge Pull Request #12523 from atishgoswami/magento2:varnish-xtags-categorypage-fix-2.3
 - Merged commits:
   1. 960dcca
okorshenko pushed a commit that referenced this pull request Dec 11, 2017
okorshenko pushed a commit that referenced this pull request Dec 11, 2017
[EngCom] Public Pull Requests - develop
 - MAGETWO-85026: [Backport 2.3] #12450: Set Current Store from Store Code if isUseStoreInUrl #12545
 - MAGETWO-85016: 12111: Missing cascade into attribute set deletion.[port] #12538
 - MAGETWO-84980: Trying to get data from non existent products #12540
 - MAGETWO-84933: PR #12466 [BACKPORT 2.3] #12523
@atishgoswami atishgoswami deleted the vanish-xtags-categorypage-fix branch February 16, 2018 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants