How to run a function every 5 minutes?

Posted by Prem Tiwari | Updated on

How to run a function every 5 minutes? If your site does get heavy traffic then you could try using set_transient() to run it (very approximately) every 5 minutes, eg:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers