MetadataCacheEnabled Property

Whether the metadata cache should be used.


int GetMetadataCacheEnabled();
int SetMetadataCacheEnabled(int bMetadataCacheEnabled);
BOOL GetMetadataCacheEnabled();
INT SetMetadataCacheEnabled(BOOL bMetadataCacheEnabled);

Default Value



This property controls whether the file metadata cache is enabled for a virtual drive. The size of the file metadata cache can be controlled using the MetadataCacheSize property.

When enabled, the class caches responses to EnumerateDirectory and GetFileInfo requests and uses the cached metadata to automatically respond to future requests (if possible), thus reducing how often the EnumerateDirectory and GetFileInfo events fire.

While a file or directory is open, its metadata is kept available in a special record called a File Control Block, regardless of whether the metadata cache is enabled.

Please refer to the Caching topic for more information.

Note: This property cannot be changed within events.

This property is not available at design time.

Data Type


Copyright (c) 2020 Callback Technologies, Inc. - All rights reserved.
CBFS Connect 2020 C++ Edition - Version 20.0 [Build 7545]