0
I’m using the Facebook and Instagram Apis on a project. I basically query posts respectively from each social network and insert in the wordpress database, saved the ID of each post and do a check before inserting to not insert duplicate posts.
However whenever I upload the site, it takes time to load because it searches for posts on facebook and instagram, this is damaging the performance of the site.
What I want to do is that this search for new posts on instagram and facebook is only done once a day. If a user enters the site and runs the search, the next users will no longer perform this search. And then the next day the first user runs the search and the others don’t and so on.
Related http://answall.com/q/2818/3635
– Guilherme Nascimento