The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
cron.php - What does it do on page load?
Hello, I have run my forums on pingdom tools and noticed that the cron.php file in itself takes 300ms to complete what ever it does.
What does this do on pageload? Can I disable it or optimise it in any way so that my page loads snappier? Thank you. |
#2
|
|||
|
|||
cron.php runs your scheduled tasks, so what it does on a given page load and how long it takes will vary depending on what's running. It's done by putting a fake image at the bottom of the page, so I don't think it should affect what the user sees, as far as page load time. Also, on a busy forum it probably won't be doing anything most of the time.
|
#3
|
|||
|
|||
Quote:
The 400ms would make my forums a lot faster. |
#4
|
|||
|
|||
No, you don't want to delete it, some things won't work right if you do. The scheduled tasks do run on the server, but vb has no way to force anything to run except when a page request comes in (in theory you could use a cron job or equivalent, but it's not set up that way by default).
I'm not an expert on analyzing page load times, but like I mentioned above, it might show up on a graph as something taking a long time, but it shouldn't look that way to the user because they won't notice if it's done or not. But also, it doesn't seem like it should take 400ms every time. Did you run more than one test and see that every time? |
#5
|
|||
|
|||
Quote:
So the "server side" cron jobs are activated by page loads? I suppose that makes sense. I think I will just leave it for now and focus on optimising other areas. Thank you for your help. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|