Open dmitri-anghiloglu opened 6 years ago
That's a tricky question, we still didn't decide yet whether we need to cache DB failures or not. There are definitely cases where it's desired, e.g. when DB is overloaded. We probably need to introduce cache_errors
option or something.
Use case ejabberd_auth (auth_cache) User tries to authenticate for the first time and at that moment connection to db fails(returns and error). Current implementation saves the error in the cache. User will not be able to authenticate until the cache expiration or password update.
The same behaviour in mod_vcard, mod_roster, mod_privacy etc.
I resolved it for myself only in several important modules ex. ejabberd_auth