View Full Version : cron to rebuild thread info
souperman
03-25-2011, 11:04 PM
I need a cron to rebuild the last 50 threads created. Same thing found on the update counters, but only do the last 50 threads.
BirdOPrey5
03-26-2011, 01:26 AM
I *think* this will do it, but honestly I had no way to test it. I know it doesn't produce an error code and it works on the last 50 threads, so I think it works.
Upload to your includes/cron/ folder then in admin cp go to "Add a New Scheduled Task" and set it up how you like.
I looked at misc.php and altered the thread update code to work in a cron file.
souperman
03-26-2011, 03:00 AM
Thank you sir. Works like a charm :)
DCD.RB
02-17-2017, 11:42 PM
My apologies to bring this up, but I'm trying to use this with vBulletin 3.8, and it seems to only work if ran manually. Scheduled does not seem to run at all. And yes, there's hundreds of active users.
There's a lot of ghost pages that appear due to people being in global ignore, and running the cron resolves it every time.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.