Good evening,
I’m trying to set up some of my pubsub leaf nodes to expire items after a set amount of time using the pubsub#item_expire attribute. The entries were not being deleted so I inspected the node’s configuration, and it seems it’s not there at all?
Openfire does not support the version of the spec in which this new expiry property was introduced.
Doh. Is there any other decent way to get rid of pubsub entries based on time? I’ll probably end up using SQL to do some purging if not. Thanks rcollier, very helpful as usual : ).
I would write a plugin to do it. I did that in the past for a different use case which required deletion of items based on user presence.
In fact, that is why I proposed presence and time as a means of expiring items, which were both adopted into version 1.13 as pubsub#item_expire and pubsub#purge_offline .
The problem with the sql approach (assuming an external process) is that the server stores the node contents in memory, so deleting them from the database leaves you with a synchronization issue between the running server and the database.
Thanks for the help, I may indeed look into writing a plug-in for item_expire!