i have a file that contain a user database formatted in JSON format.
This file is generated by an external system. The external databse is used to register users points accumulated with a CARD.
I have a website based on wordpress and i would like to offer to my users the possibility to do the login into my website and to see the number of points accumulated.
For this i need to do every day a sincronization between wordpress database and external database. ( with this file that is automatically generated by remote database and contain all users formatted into JSON format )
Wordpress by default offer all functions you need to insert users and update user's fields.
I need this functions inside the script:
- 1 function to mass insert all users into database ( i will use this now because i have all users into reward system so i need to mass replicate the user's base
- 1 function that i will run every day with a cron job to update the number of points of each users
Because the file is really big i need that can be runned without problem of timeout.