Previous Thread
Next Thread
Print Thread
Rate Thread
#227514 11/07/2002 8:42 PM
Joined: May 2002
Posts: 3
Lurker
Lurker
Offline
Joined: May 2002
Posts: 3
My web host says I need to prune my posts in one of my forums (UBB Threads 6.1.1) down to 20,000 posts. He says it's sucking up all the CPU's attention. Is there a way to do this in one fell swoop without checking each box for each thread in Post Management - Expire Threads. I would just like to delete anything older than a certain date.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
If you edit the forum and set the posts to expire after a certain time limit... then setup a cron job to run "do expire"... posts older than that date will automatically expire.


Joined: May 2002
Posts: 3
Lurker
Lurker
Offline
Joined: May 2002
Posts: 3
Cron job?

I am a novice. What is a cron job?


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
A cron job runs on the server... like a "timer" and executes a script on a regular basis.

For example.. if the script do "doexpire" in the cron folder of your threads install ran nightly... it would expire old posts on a regular basis... automatically.

I can be tricky setting one up... sometimes it's simple.

There are some cron resources here:
http://www.ubbcentral.com/resources/cron.html

I would first try asking your host to set one up to run nightly for doexpire (and subscriptions if you want this feature). Some hosts don't allow it.

Hope that helps... that's really the only way to expire posts by date...

There's probably a MySQL command to do so... but the "date" used in the post table confuses me a bit... as it's got something to do with the number of seconds from 1975 or something. Attempting it that way and doing it wrong could be bad.



Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2042
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)