From d08c3518454948809c90bd6bb9d239b2a93302b6 Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Tue, 6 Sep 2022 15:05:44 +0200 Subject: [PATCH] Improve doc --- synapse/module_api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py index 0071085e124a..716b8efe2aa8 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py @@ -854,7 +854,7 @@ async def invalidate_cache( self, cached_func: CachedFunction, keys: Tuple[Any, ...] ) -> None: """Invalidate a cache entry of a cached function across workers. The cached function - needs to be registered first with `register_cached_function` for this to work. + needs to be registered on all workers first with `register_cached_function`. Args: cached_function: The cached function that needs an invalidation