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