4 ms·
Don't do that as the page is rendered. Have an offline job pull in those feeds and store them in a database, then have the frontend pull from the database. Even
by troels 16y ago
Don't do that as the page is rendered. Have an offline job pull in those feeds and store them in a database, then have the frontend pull from the database. Even if the feeds are highly specific for the page loaded - In that case, model the database as a queue where the frontend requests the feed and the offline jobs pulls them. This will allow you to parallelize the feeds, which is otherwise neigh impossible to do in php.