Closed willdashwood closed 1 year ago
Hi @willdashwood,
Our apologies for the difficulties you had with the WHMCS module sending too many searchPromoMessageRequest
requests.
When you access the WHMCS admin dashboard, a widget displays the number of domains, your account balance, and a promo message. The module uses the API call searchPromoMessageRequest
to check the promo message.
When browsing through the domain list as an admin, many Openprovider instances are launched. Each instance makes a request to Openprovider to validate the token. To prevent WHMCS from sending too many searchPromoMessageRequest
API calls, we added a single page cache feature to the module and this cache reduces the number of requests to just once per page load. You can use the single-page cache fix to put a stop to the module making too many searchPromoMessageRequest
calls. To apply the fix,
Rename the file: modules/registrars/openprovider/Controllers/System/ConfigController.php in your existing installation and create a new one with content from ConfigController.php
Create a new file modules/registrars/openprovider/helpers/Cache.php with content from Cache.php
Please test and let me know if you encounter any issues.
Just had an email from OpenProvider.
I don't call searchPromoMessageRequest in any of my custom scripts. I'm not even sure what it does. But it is referenced in this WHMCS module in several files:
modules/registrars/openprovider/Controllers/System/ConfigController.php modules/registrars/openprovider/OpenProvider/API/API.php modules/registrars/openprovider/OpenProvider/API/ApiHelper.php modules/registrars/openprovider/OpenProvider/API/CommandMapping.php
What is it for? How is it being abused? Is it, for example, the name spinner or WHOIS lookup service?