How can I refresh user or roster cache on demand

Hello,

Does anyone know if I can flush the openfire’s user or roster cache manually?

My problem originated when i configured my openfire user base to a separated database table of my own, and when adding new users using SQL insert, the openfire server will not pick up new record right away. My configuration works fine with authentication. It just now refreshing instantly. Can anyone help?

Thanks,

Zemian Deng

Hey Zemian,

It is not recommended going straight to the database for the same reason you are asking this. Even if you could flush the caches that does not mean that the roster or user profile is going to be pushed to the client when updated. The correct way to do these changes is through the Openfire API. You can implement your own plugin that will update the roster and/or user profiles using the proper API.

Regards,

– Gato