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
- TLD sync is run
- With the TLD prices cache created, the module requires < 0.2 seconds to load.
- 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.
- Once done, the browser requires additional 10 - 40 seconds to process the HTML produced by WHMCS.
Usage
- Navigate to
modules/registrars/openprovider/cron/
on the server where WHMCS is installed - Run
php -d max_execution_time=0 DownloadTldPrices.php
- In WHMCS Admin Area go to Setup > Products/Services > Domain Pricing > Click here to sync now > Openprovider
- Import TLDs