Document group and user display name caches

Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
Anna Larch
2023-04-07 14:09:25 +02:00
parent 01586bb685
commit fb0017450c

View File

@@ -60,6 +60,11 @@ If you increase the long_query_time to 100 and add log-queries-not-using-indexes
slow_query_log_file = /var/log/mysql/mysql-slow.log
long_query_time=100
Cached data
^^^^^^^^^^^
Starting from Nextcloud 26, user and group display names now are cached. Use the ``IUserManager::getDisplayName`` or ``IGroupManager::getDisplayName`` functions to avoid roundtrips to the database.
Measuring performance
^^^^^^^^^^^^^^^^^^^^^