The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Run vb cron more often then 10min limit
is there a possiblity to run vb cron more often like every 2 min?
like pluggin or code change? |
#2
|
|||
|
|||
You should be able to edit a scheduled task and have it run every minute. I don't think you can have it run every two minutes because the only options are to have it run every minute or to select up to 6 times during the hour.
|
Благодарность от: | ||
tbworld |
#3
|
|||
|
|||
A CRON process/task scheduler is not run on a timer but when a user requests a new page. If no one is on the board requesting new pages from the server, the CRON process/task scheduler does not run.
You would have to use a timer task from your server. There are several threads on the subject here on vBulletin.org. |
Благодарность от: | ||
kh99 |
#4
|
||||
|
||||
Why are you trying to run something that often?
|
#5
|
|||
|
|||
its a custom plugin and need to run at least every 3-5 min.
in vb cron you can set up min. every 10 min. this is the problem. Quote:
|
#6
|
||||
|
||||
Again, why does it need to run that often?
|
#7
|
|||
|
|||
I have not dug into the semiphoric nature of the vbulletin cron system that deeply as I run my tasks via the server. My guess if the time is set too little there might be timing issues, possibly race conditions.
As @Zachery asked, if we knew what you were doing, we could be of more assistance. Most of the cron code is in 'functions_cron.php'. |
#8
|
|||
|
|||
If you've written your own custom cron task script, you could set it to run every minute then have it check a "last run" time so that it only does the actual work every 3 or 5 minutes. (You'd have to save your own last run time in the database, maybe by using the datastore).
|
#9
|
|||
|
|||
yes own cron is a complicated solution, but maybe just run it with server cron? or not possible.
|
#10
|
||||
|
||||
You still really haven't, told us why it needs to run so often?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|