The LocalVFSService and SwitchableLocalFileSystem components include checksum caching features. Calculated checksums are stored in memory, and they are occasionally written to or retrieved from a single file. JournalingFileSystemService components use this feature if it is enabled on the LocalVFSService to which they point.
This feature is useful only for file systems that have large numbers of files, and it is disabled by default, though enabling it does not adversely affect file systems with small numbers of files. It is highly recommended for the WWWFileSystem component on the agent if significant numbers of assets (more than 1000) are deployed to that component. It is enabled by default in the WWWFileSystem component on the PublishingWebAgent.
The following properties control this feature:
checksumCacheEnabled
: Enables/disables checksum caching.checksumCacheEncoding
: Specifies the encoding used to save the cache data —by default, UTF-8. If your environment uses file paths with non-UTF-8 characters, set this property to the encoding set that you use.checksumCacheDataFile
: The SwitchableLocalFileSystem automatically saves the checksum cache data files in its data directory, but to enable checksum caching on a LocalVFSService, set the value of this property to the location where a file can be saved.