XF 1.5 How can I find out when Xenforo Cron runs?

Dan Allen

Active member
This is probably really stupid on my part. I looked in crontab -e and don't see any entries that are associated with XenForo. How can I see what the cron tasks are and when they run?

Jeremy P

Well-known member
You can find them in the Admin CP under the "Tools" tab. XenForo has its own built-in cron system and doesn't use the system cron. They don't run at a particular time though, since a request has to be made for them to be triggered. So it's essentially run on the first request after a certain time.

Dan Allen

Active member
Thank you Jeremy, I see them now.

The reason I was looking is I am trying to find the cause of a problem we are having with Xenforo. This is a sample of the reports of the problem, which have been made by a few dozen of our site members.

Twice now while I've been just reading a page, I've had 100% CPU spikes in the browser (enough to basically freeze the computer for 10-20 seconds).

First on this page around 6.25am MDT,

next on this page about two minutes later:

I was looking for something on the server side to be causing this, which is why I was tracking down cron activity. The CPU surge is causing me to suspect this problem occurs in connection with ajax scripts running in the background. All the reports say the problem occurred while a Xenforo page was the active page in their browser. It's been reported on Chrome and FireFox.

Any suggestions on how we can figure out what is happening and fix it?


XenForo developer
Staff member
It's very unlikely to be cron. It's possible but unlikely. You'd need to look at your raw web server logs to see if you see a large number of requests to deferred.php at the exact time they're reporting the problem.

Unfortunately I can't see the thread in question, but it could be something relating to the content of the thread or elements of your style (or ads).