php - How to take an action after certain time (different from user to user)? -


i'm developing web game (js php mysql) in 1 clicks button start action takes time complete (let's 10 hours) , when finishes points added player's total.. problem need points added if player not online @ time action finishes.. example need have rankings updated, or email sent player..

i thought cron job checking ending actions, think kill resources (contantly checking against actions of thousands of players..).

is there better solution problem?

thanks attention!!

you can write database when it's finished , when user logs in add earned points account. can check cronjob. if have millions of user this not kill server.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -