Each cache has a distinct configuration that defines if, and if so, after what time, it is refreshed. You can see the configuration in the Openfire admin console, as shown here:
If this is fixed by a cache reset, then it is very likely that your problem will eventually
go away - but it could take several hours to a day, depending on your current cache configuration.
You can configure individual caches by setting properties. The template for the property name that controls the maximum lifetime of cache entries is:
It takes a numeric value that represents an amount of milliseconds.
You’ll have to deduce the cachename value from the source code of Openfire. Most of them are listed in https://github.com/igniterealtime/Openfire/blob/master/xmppserver/src/main/java/org/jivesoftware/util/cache/CacheFactory.java#L124. Here, you’ll see that the name for the User Cache, for example, is
I’m not exactly sure what caches affect your problem, but you can experiment to find out. You might need a combination of a few caches. All of them is overkill though. My guesses would include