Automate a weekly background function in WordPress
问题 I'm developing a WordPress site for a client who is listing celebrities on her site. Each celebrity profile shows a table of social media stats which is grabbed via the relevant API using the respective user handle. For example the Twitter follower count is retrieved via the Twitter API. Everything works as it should but the page load times are painful. I'm now beginning to think it would make much more sense for the server to make the API queries in the background once a week and update the