openprovider / Openprovider-WHMCS-domains

Openprovider WHMCS Domain Module
43 stars 31 forks source link

Peformance boost: Optimize configuration loading and credential checks #342

Open MrKoopie opened 3 weeks ago

MrKoopie commented 3 weeks ago

Modified openprovider_getConfigArray to use static caching for configuration and refined the credential check logic in ConfigController to include additional parameters such as action and module. These changes aim to improve performance and ensure the proper execution of credential verification, but only upon saving in WHMCS.

Reduced admin/clientssummary.php?userid=xxx from 11 seconds to 1.34 seconds.