exclude map from cacheKey

Merged
GU
6mo ago
+5-1

What is this Contribution About?

Please provide a brief description of the changes or enhancements you are proposing in this pull request.

Issue Link

Please link to the relevant issue that this pull request addresses:

Loom Video

Record a quick screencast describing your changes to help the team understand and review your contribution. This will greatly assist in the review process.

Demonstration Link

Provide a link to a branch or environment where this pull request can be tested and seen in action.


Summary by cubic

Skip caching for product listing pages when the URL contains map= to avoid stale faceted results. cacheKey still returns null for new search terms not in ctx.cachedSearchTerms.

Summary by CodeRabbit

  • Bug Fixes
    • Improved product listing page cache logic to detect specific URL query parameters and bypass caching when appropriate, preventing incorrect cached results and ensuring users see accurate listings for those requests.