@@ -223,10 +223,23 @@ setManager x y = y { settingsManager = Just x }
223-- Enabling this cache results in drastic performance improvement for file
223-- Enabling this cache results in drastic performance improvement for file
224-- transfers.
224-- transfers.
226−-- Default value: since 3.0.13, default value is 0, was previously 10
226+-- Default value: 0, was previously 10
227setFdCacheDuration :: Int -> Settings -> Settings
229setFdCacheDuration :: Int -> Settings -> Settings
228setFdCacheDuration x y = y { settingsFdCacheDuration = x }
230setFdCacheDuration x y = y { settingsFdCacheDuration = x }
232+-- | Cache duration time of file information in seconds. 0 means that the cache mechanism is not used.
234+-- The file information cache is an optimization that is useful for servers dealing with
235+-- static files. However, if files are being modified, it can cause incorrect
236+-- results in some cases. Therefore, we disable it by default. If you know that
237+-- your files will be static or you prefer performance to file consistency,
238+-- it's recommended to turn this on; a reasonable value for those cases is 10.
239+-- Enabling this cache results in drastic performance improvement for file
230setFileInfoCacheDuration :: Int -> Settings -> Settings
243setFileInfoCacheDuration :: Int -> Settings -> Settings
231setFileInfoCacheDuration x y = y { settingsFileInfoCacheDuration = x }
244setFileInfoCacheDuration x y = y { settingsFileInfoCacheDuration = x }