Log in
Model

PopularSearchTerms

Magento\Search\Model\PopularSearchTerms

What it does

This class determines whether a search term is popular enough to be cached based on store configuration.

Developers use this to optimize performance by caching results for frequently searched terms, reducing database queries for top search queries.

The class checks if a search term ranks within the configured maximum count of cacheable search terms for a specific store.

Public Methods

  • isCacheable()