🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes.announce
Article #481

New feature in expire.php

#481
From: Retro Guy
Date: Sun, 27 Aug 2023 18:31
14 lines
1732 bytes
I have added the ability to expire by both days and number of posts.

This way, it's easy to keep huge groups from hogging resources by limiting them to a specific number of posts.

So in your section config file, you put days. 
In expire.conf you can ovveride the days for specific groups. 
In overrides.inc.php you specify max number of posts if you wish.

Only the section config file is required. You can put zero or '' there to disable expiration.

Also, the new ovverides.inc.php file allows for more fine tuning per site so that hard coded defaults (like how many articles to pull when first adding a group) can be configured without editing files that get over written on upgrade.

-- 
Retro Guy
Technical Details
Message-ID: <428facd5c2919e6574539ba8c90db49e@rocksolidbbs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!archive!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <428facd5c2919e6574539ba8c90db49e@rocksolidbbs.com>
Subject: New feature in expire.php
Date: Sun, 27 Aug 2023 18:31:30 +0000
From: retro.guy@rocksolidbbs.com (Retro Guy)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!archive!not-for-mail
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
Newsgroups: rocksolid.nodes.announce
X-Rslight-Site: $2y$10$T4qHjmJSl0QgDf1E.FPZSurr2.CZ8ydY/8Xwdh1xKg8rZMRZNvHrC
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light 0.9.1
Organization: RetroBBS
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
 ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
 H0=hZt'[%)4kG|