Hi, I am trying to implement licensing for one of my plugins. I am using Plugin licenses | Kirby CMS.
I have successfully implemented the dialog to enter the license key and do the activation. But with the instructions in the docs the closure that loads the plugin’s license is called many times in one page load. I would like to validate the license only once when the system area is loaded.
How do I validate the license before showing the state in the system panel without calling the licensing server many times for each page load? Or how would I validate the license in general on occasion and not with every page load? Do I have to implement my own logic? Maybe use the cache?
Is there a hook for the system panel where I could add some logic to verify the license before the status is shown to the user? Or another method? Is there any sample code of how to use this?
I’d be grateful for some ideas.