Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Professional wrestling: ballet for the common man.


computers / Rocksolid Nodes Announce / New feature in expire.php

SubjectAuthor
o New feature in expire.phpRetro Guy

1
New feature in expire.php

<428facd5c2919e6574539ba8c90db49e@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=459&group=rocksolid.nodes.announce#459

  copy link   Newsgroups: rocksolid.nodes.announce
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Subject: New feature in expire.php
Date: Sun, 27 Aug 2023 18:31:30 +0000
Organization: RetroBBS
Message-ID: <428facd5c2919e6574539ba8c90db49e@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3935626"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.9.1
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
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|
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Rslight-Site: $2y$10$T4qHjmJSl0QgDf1E.FPZSurr2.CZ8ydY/8Xwdh1xKg8rZMRZNvHrC
 by: Retro Guy - Sun, 27 Aug 2023 18:31 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor