Is it possible to include the contents of a file in an admin area home page widget?
I've been calling an external API to Namecheap for various data points, and find now that I have more than a few it's slowing the admin home page load some, especially if NC is slow responding. my plan is to take those API calls and have them write results to a file a few times per day (cron based), and simply have WHMCS display the contents of that file instead of a live call.
There are 4 different things I'm currently calling live, so I'd need to call 4 different files into the widget.
Is that possible?
Question
bear
Is it possible to include the contents of a file in an admin area home page widget?
I've been calling an external API to Namecheap for various data points, and find now that I have more than a few it's slowing the admin home page load some, especially if NC is slow responding. my plan is to take those API calls and have them write results to a file a few times per day (cron based), and simply have WHMCS display the contents of that file instead of a live call.
There are 4 different things I'm currently calling live, so I'd need to call 4 different files into the widget.
Is that possible?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts