Log in

View Full Version : Help with a CRON File


dknelson
01-28-2016, 10:43 AM
I recently installed a chat room in my VBulletin forum. It stores all the messages and any files uploaded to chat in the database. There is a link in the admin area that allows you to truncate the tables so that they don't get TOO big.

I want to add a CRON task that will automatically truncate the tables. I have two tables that need to be truncated, could be two separate CRON tasks or combined into one, doesn't matter to me.

I want it to delete all entries more than 24 or maybe 48 hours old.

Can anybody help?

Thanks

shimei
01-29-2016, 07:26 PM
Wouldn't you be better off asking the developers of your particular chat room?

dknelson
01-29-2016, 07:58 PM
Normally yes. I figured that somebody could help here though. Though the chat software works OK, support is pretty much nonexistent.