title: Should I use a cronjob or write the script in php?
body: <p>So I am developing a PHP app that loops through a list of websites stored in the database, downloads their RSS feeds and checks if there are any new posts. If yes, It inserts these posts into the database and displays them on the index page.</p>
  
  <p>My code for the database loop is on the head of the index.php so that everytime you open the app, it does what is said above and then displays the fresh results after it finishes.</p>
  
  <p>But I have noticed that it can take some time to do so every time you refresh the page. Do you think I should use a cronjob for it?</p>