Openfire 4.0.1 presence-online bug with Routing Users Cache

We are experiencing a consistent issue with presence status:

  1. User logs in and logs out.
  2. Presence continues to show user as logged out, however session is shown as closed. Presence plugin for example, shows Online
    Clearing the “Routing Users Cache” resolves the issue until the user logs in again and presence gets stuck.

Is there any way to disable the cache?

We did not have this problem with 3.10.x

We can reproduce this with the PSI+ client.

Is this a known bug, we could expect to be fixed in 4.0.2? It shows offline users as online in the roster, so it poses a large problem for us.

Sounds like this bug [OF-829] Ghost sessions left on a server when using Pidgin client - Jive Software Open Source

Yes, and I can confirm that we definitely re-use the resource.

Does anyone know if you can set a particular cache to 0?

[OF-829] Ghost sessions left on a server when using Pidgin client - Jive Software Open Source

Should be fixed at openfire 4.0.2