Merge pull request #10026 from nextcloud/enh/document-display-caches

Document display name caches
This commit is contained in:
Christoph Wurst 2023-04-11 13:28:36 +02:00 committed by GitHub
commit a0787a4f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
^^^^^^^^^^^^^^^^^^^^^