BuildMetadataCache;
The BuildMetadataCache method updates metadata cache of all repositories.
When the method is executed, cache is updated for the repositories, for which there are descriptions are available in the Definitions collection. Before cache update it is recommended to call the CleanMetadataCache method.
Add links to the Metabase system assembly.
Sub RebuildAll;
Var
MbMan: IMetabaseManager;
Begin
MbMan := MetabaseManagerFactory.Active;
Debug.WriteLine("Cleaning cache");
MbMan.CleanMetadataCache;
Debug.WriteLine("Building cache");
MbMan.BuildMetadataCache;
Debug.WriteLine("---Done---");
End Sub RebuildAll;
After executing the method, metadata cache of all repositories, for which descriptions were created, are reset and updated.
See also: