We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2af504e commit 7ca3facCopy full SHA for 7ca3fac
src/redturtle/pasldap/resilient.py
@@ -55,6 +55,14 @@ def _wrapper(
55
56
if cache_key:
57
logger.info("MISS: enumerateUsers %s", cache_key)
58
+ if not users:
59
+ # TODO: verificare se il risultato vuoto è un errore (da non mettere in cache) o veramente
60
+ # un risultato vuoto (da mettere in cache? solo temporaneamente?)
61
+ logger.warning(
62
+ "enumerateUsers %s not found (possible error? not caching?)",
63
+ cache_key,
64
+ )
65
+ return users
66
if not hasattr(self, "_cache_users"):
67
self._cache_users = PersistentMapping()
68
safeWrite(self)
0 commit comments