Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [tmughostmaster] Auto Expiration of Posts ?

Quote Reply
Re: [tmughostmaster] Auto Expiration of Posts ? In reply to
That field is only an optimization value for "new" post data - that is, the length of time GForum remembers which posts are new - on large forums, it can be a big optimization to forget this data if a person hasn't entered the forum in quite a long time.

GForum has no capability to automatically delete the old posts. You can manually do it through the Post menu in the admin panel, or you can set up a cron job to run nightly which runs:

perl -e 'use lib "/path/to/your/admin"; use GForum; GForum::init("/path/to/your/admin"); use GForum::Post; GForum::Post::delete_old(DAYS, FORUM_ID);'

You need to replace the colored values. For example, if you wanted to delete posts more than 30 days old from the forum with ID 6, you would substitute DAYS with 30, and FORUM_ID with 6. If you omit FORUM_ID entirely, it will delete threads older than 30 days from ALL forums. Note that prior to version 1.2.0, the FORUM_ID value was not supported: old posts from all forums were deleted.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Auto Expiration of Posts ? tmughostmaster 2060 Jun 18, 2003, 9:38 AM
Thread Re: [tmughostmaster] Auto Expiration of Posts ?
Jagerman 1997 Jun 18, 2003, 11:14 AM
Post Re: [Jagerman] Auto Expiration of Posts ?
tmughostmaster 1994 Jun 18, 2003, 11:54 AM