On 5/27/25 18:54, Mark wrote:
However when I update the template, the databases are updated correctly
but the Welcome message is still sent with the old template content.
mailman.templates
mailmanweb.postorius_emailtemplate
Additionally, if I delete the template and create a new one the old
content still gets sent.
I cannot find where this content is written or is being cached.
The content is stored in the mailmanweb.postorius_emailtemplate table.
As far as Mailman core and Postorius are concerned, that's the only place.
I'm guessing, but my guess is it's cached in your wsgi server. I.e.,
upon initial creation an entry is made in the mailman.template table
with a uri like
https://example.com/mailman3/api/templates/list/list.example.com/list:user:notice:welcome
and when Mailman core wants the template, it gets that uri which I'm
guessing is then cached in the wsgi server. Then, if the content is
changed, the GET returns the old cached value instead of getting the new
value from Postorius. If the template is deleted, the mailman.template
table entry is deleted and at that point Mailman core will get the
template from the file system following it's normal search rules, but if
the template is recreated in Postorius, a new table entry is made with
the same uri which may still get a cached template from the wsgi server.
If this is correct, restarting mailman-web or whatever controls the wsgi
server should fix it.
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/CCHVOOBG3HNSOWBRHAB4NSX5V7CFS27W/
This message sent to arch...@mail-archive.com