From f43f9d2b11e20a00838a46ead854d853e40d7a27 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Sun, 29 Sep 2024 12:31:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20Add=20a=20comment=20about=20cach?= =?UTF-8?q?ing=20user=20ids?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lamindb_setup/core/_settings_user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lamindb_setup/core/_settings_user.py b/lamindb_setup/core/_settings_user.py index b37feb99..f10ff3c6 100644 --- a/lamindb_setup/core/_settings_user.py +++ b/lamindb_setup/core/_settings_user.py @@ -50,4 +50,6 @@ def id(self): """Integer id valid in current intance.""" from lnschema_core.users import current_user_id + # there is no cache needed here because current_user_id() + # has its own cache return current_user_id()