Jump to content

How to determine the domains registered in the last 10 minutes?


Remitur

Recommended Posts

There is a certain operation that must be performed at least 5 minutes after the registration of some domains.

I could use the AfterCronJob hook, check the domains registered in the last 10 minutes, and then proceed with this operation on those domains (if any), but... how can I identify the domains registered in the last 10 minutes? I haven't been able to find any way to do it...

Link to comment
Share on other sites

It would possibly benefit you to create a custom field associated with domain to store timestamp of registration.

Then each 10 minutes, check custom field value of the most recent/highest domain if the value satisfies the requirement.

If false, stop querying.

If true, repeat query, highest domain id not previously checked within this cron. Repeat until a false is returned.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated