Fix domain record creation during site creation/duplication #64
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Fix Domain Record Creation and Add DNS Check Interval Setting
Description
This PR addresses two related issues with domain management:
Fixes an issue where domain records are not being created automatically when a site is created or duplicated. This is particularly important for the Closte.com integration, as the domain record creation triggers the Closte API to create the domain and SSL certificate.
Adds a configurable setting for the DNS and SSL certificate checking interval. Previously, this interval was hardcoded to 5 minutes (300 seconds), which was too long for practical use during site setup and testing.
Changes Made
Domain Record Creation Fix
create_domain_record_for_sitemethod to theDomain_Managerclass that creates a domain record for a site if one doesn't already existhandle_site_createdmethod to call the new method for both subdomain and non-subdomain sitesSitemodel'ssavemethod to ensure domain records are created when sites are created through the WP Ultimo interfaceDomain_Managerclass to handle thewu_initialize_siteactionDNS Check Interval Setting
dns_check_intervalto the domain mapping settings sectionasync_process_domain_stagemethod to use the new setting value instead of the hardcoded 5 minutesSettings Details
Testing
These changes have been tested to ensure that:
Related Issues