CacheAutoClear: Boolean;
The CacheAutoClear property determines whether automatic cache clearing mode is used when working in the repository.
If this property is set to True, automatic cache clearing mode is used when working in the repository, objects are cleared, which structure was extracted. Before clearing the check for references to object is performed if there are no references then the object is deleted from memory. For the systems with x86 bitness the clearing is performed on using more than 80% of virtual memory. On using the virtual memory in the interval of the 50-80% the deletion of objects which were not used for more than 20 minutes. In x64 systems the objects, which have not been used for 20 minutes, are deleted every 20 minutes. In both cases the operation is performed on obtaining the structure of a new object.
If the property has False value, automatic clearing is not performed.
By default this property is set to False.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
Begin
MB := MetabaseClass.Active;
MB.CacheAutoClear := True;
End Sub UserProc;
After executing the example cache is automatically flushed.
See also: