Answer the question
In order to leave comments, you need to log in
How to auto update database data?
Good day,
I have a website, and it receives a certain number from the VK API array and enters it into the database, but the script enters this number into the database only when the user has refreshed the page (note that in order to reload the page, the user must be autologged through vk), so the question is: how to make this number itself updated and entered into the database by cron or how?
I'm on the sprint host now, I just tried to add a task to the scheduler so that every minute it updates the file
Answer the question
In order to leave comments, you need to log in
Yes, cron, just keep in mind that when requesting from cron, you need to use access_token, and when it expires, refresh it, if you can’t refresh it, then wait until the user himself refreshes access_token when entering the site
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question