Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A clash of doctrine is not a disaster -- it is an opportunity.


rocksolid / 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://www.rocksolidbbs.com/rocksolid/article-flat.php?id=457&group=rocksolid.nodes.announce#457

  copy link   Newsgroups: rocksolid.nodes.announce
Date: Sun, 27 Aug 2023 18:31:30 +0000
Subject: New feature in expire.php
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
From: retro.guy@rocksolidbbs.com (Retro Guy)
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
Message-ID: <428facd5c2919e6574539ba8c90db49e@rocksolidbbs.com>
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|
 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.81
clearnet tor