How to go about a php script that runs in background
-
I’m pretty new to wordpress so bare with me if I’m making rookie mistakes..
I’ve got an embedded instagram feed on the main page of a wordpress site. It uses an instagram token to hit the account and retrieve information where I grab the image URL’s from. I’m not sure if the token would get blocked if this account kept getting hit constantly, so I would like to grab the latest image URL’s once a day and store them in the wordpress database under a new table.
I’m thinking a php script that’s scheduled with cron. Is this a viable way to go about it? Would the script file just be placed in the root directory of the wordpress site?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to go about a php script that runs in background’ is closed to new replies.