Skip to content

Fixes ISSUE-42370: OrganizationStructureProvider use cache to prevent unneeded queries

There were users (i.e import entry infrastructure) of OrganizationStructureProvider that were reinitializing its organization information each time they used it, resulting in too many queries that were mostly unneeded because the organization information is not updated often.

Now the organization node data will be stored in a TimeInvalidatedCache so that it is cached but periodically recalculated (current periodicity is 5 minutes). Users of OrganizationStructureProvider that used to invoke the reinitialize method no longer do it unless they really require an updated org info (only use cases were tests that invoked assertPersistOrgInfo to ensure the OrganizationStructureProvider reflected the changes they just did to the organization structure).

Edited by Augusto Mauch

Merge request reports

Loading