github openprovider/Openprovider-WHMCS-domains v3.3.1
TLD prices cache

latest releases: v5.8.0, v5.8-beta.1, v5.8-beta...
4 years ago

The functionality described here is only available on a separate branch - tld-price-cache

In some cases, server configurations do not allow for the WHMCS price synchronisation script to retrieve prices from Openprovider and then run to completion. In this case, we have a separate script which caches prices locally, and then the WHMCS price synchronisation script can run regardless of server configurations.

This release aims to eliminate the need for the workaround that was described in this article.

How it works

  1. TLD sync is run
  2. With the TLD prices cache created, the module requires < 0.2 seconds to load.
  3. WHMCS runs some logic which significantly slows down the loading of "TLD Import & Pricing Sync". This takes up to 30 seconds, depending on the speed of the server.
  4. Once done, the browser requires additional 10 - 40 seconds to process the HTML produced by WHMCS.

Usage

  1. Navigate to modules/registrars/openprovider/cron/ on the server where WHMCS is installed
  2. Run php -d max_execution_time=0 DownloadTldPrices.php
  3. In WHMCS Admin Area go to Setup > Products/Services > Domain Pricing > Click here to sync now > Openprovider
  4. Import TLDs

Don't miss a new Openprovider-WHMCS-domains release

NewReleases is sending notifications on new releases.