• Resolved fluiditystudio

    (@fluiditystudio)


    Hello,

    I have setup a plugin that works with the license checker, when entering the license and clicking the activate license button.

    However, I also need it to check back on the license key at least once a day, automatically to verify the license key hasn’t expired. I have the following outside of the “isset($_REQUEST[‘activate_license’])” if statement.

    $response = wp_remote_get($query, array(‘timeout’ => 20, ‘sslverify’ => false));

    But, that just means that it is checking on that license one after another consistently, which is causing resource limits to be reached. Is there a way that I can only run that license check once a day?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter fluiditystudio

    (@fluiditystudio)

    To clarify this further, this is the the code within the plugin that checks back to my website to make sure that the key is still valid.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, please check the following forum post. Let me know if this helps you in any way.

    Thank you

    Thread Starter fluiditystudio

    (@fluiditystudio)

    That is not actually what I was referring to. I ended up placing the call to check if the license was active into a function that ran when WordPress update check runs. This eliminated the constant calls back to my site.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, that is good to know that you found a solution.

    Perhaps if you don’t mind, you might like to share your solution to help others who might run into the same issue.

    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘License Checker wp_remote_get’ is closed to new replies.