
On 2/10/25 12:09, Lieuallen, Thomas Otis via Mailman-users wrote:
I haven’t figured out how to work with these cache files. I found some mention that a runner would clean up cache files after a week (default) and that one could use ‘cache_life’ to change that default. So, I set the following and restarted mailman. The cache files hadn’t been removed after > 4 hours, so I unset it and restarted again.
Cache_life: 1d
The setting is actually cache_lifetime
in the [mailman]
section of
mailman.cfg, however when a file is cached, it's lifetime is saved in
the database and won't be changed by changing that setting.
Without further information or direction, I’m tempted to just remove those cache files and move on with life.
Removing them is OK, but a database entry will still exist pointing to
them and attempt to retrieve them will return Cache content lost
. The
way to properly remove them is in Mailman shell
$ mailman shell
Welcome to the GNU Mailman shell
Use commit() to commit changes.
Use abort() to discard changes since the last commit.
Exit with ctrl+D does an implicit commit() but exit() does not.
>>> cm = getUtility(ICacheManager)
>>> cm.clear()
>>> commit()
>>>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan