Answer the question
In order to leave comments, you need to log in
How can I create a background process on the site?
It is required that by pressing a button on the site, after a while the value in the database changes. We want this to happen even if the user has navigated to another page or closed the site.
Answer the question
In order to leave comments, you need to log in
It's not clear from the description how it should work.
As one of the options:
1)
at the click of a button on the websitewrite data to a separate table.
over time, for example, every hour, minute, or the like.
even if the user has moved to another page or closed the site.cron will pull the script you need. In it, you get the data that users clicked and process it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question