Skip to content

[Issue] Allow to cache search results #30508

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #30340: Allow to cache search results


Description (*)

Magento 2.4-develop
search result page can be cached, but varnish vcl has a rule to not cache the page.

Manual testing scenarios (*)

  1. Configure magento to use varnish for FPC
  2. Do a search with one of the top 100 searches (default value), or go to Admin -> Stores -> Configuration -> Catalog -> Catalog -> Catalog Search and set Number of top search results to cache to 0 (this will set to cache all the results)
  3. Do the same query, to see if you hit the cache.

Actual result:

  • The search page is not cached.

Expected result:

  • The search page should be delivered from cache

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 are green)

Metadata

Metadata

Assignees

Labels

Component: PageCacheFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions