Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5690

Order: Limit keyword searches to spotlight TLDs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.13.0
    • Fix Version/s: 5.13.2
    • Component/s: Plugins
    • Labels:
      None

      Description

      Summary

      Keyword domain searches (searches without a TLD, e.g., "mybusiness") currently check availability across ALL configured TLDs, causing customers to hit registrar API rate limits. This change will limit keyword searches to only check spotlight TLDs, giving admins control over which TLDs are checked.

      Problem

      When a user enters a keyword without a TLD in the domain lookup form, the system queries availability for every configured TLD. For deployments with 50-100+ TLDs, this generates excessive API calls to registrar modules, triggering rate limits and failed lookups.

      Solution

      Modify keyword search behavior in the Order plugin to only check spotlight TLDs:

      1. Keyword searches (no TLD specified): Check only spotlight TLDs configured in Domain Manager, or fall back to first 4 TLDs if none configured
      2. Full domain searches (TLD specified, e.g., "example.com"): Continue checking the specific TLD requested (no change)

      Benefits

      • Reduces API calls from potentially 100+ to typically 4-10 per keyword search
      • Admins control which TLDs are checked by configuring spotlight TLDs in Domain Manager
      • Users still see popular/promoted TLDs first
      • Users can still search specific TLDs by entering the full domain name

      Files Affected

      • plugins/order/lib/order_types/domain/order_type_domain.php

      Acceptance Criteria

      • Keyword searches only check spotlight TLDs (or first 4 TLDs if none configured)
      • Full domain searches (with TLD) work unchanged
      • "Load More" button hidden for keyword searches when only spotlight TLDs are available
      • Existing spotlight TLD configuration in Domain Manager controls which TLDs are checked

        Activity

        admin Paul Phillips created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Assignee Jonathan Reissmueller [ jonathan ]
        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 29 minutes [ 1740 ]
        Worklog Id 18077 [ 18077 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/Jan/26

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 29 minutes
              29m