Repository navigation
Directory cache
Directory cache keeps directory listings and file metadata in RAM to speed up browsing and searching, especially for large shared folders. It does not cache file contents.
Open Admin → Options → Others → Directory cache.
| Setting | Behavior |
|---|---|
| Never | Cache disabled (default). |
| At start | Build the cache at startup, then update it when filesystem changes are reported. |
| Every 1 hour / 4 hours / 24 hours | Also rebuild the cache periodically at the selected interval. |
All enabled modes build the cache in the background and watch for filesystem changes. Periodic refresh is an additional safeguard, not the only way the cache is updated.
The configuration key is directory_cache: 0 disables caching, -1 means At start, and 1, 4, or 24 selects the refresh interval in hours.
Network filesystems do not always report changes reliably to the computer running HFS. For example, a file added to a NAS from another computer may not produce a filesystem notification that HFS can receive.
With At start, a missed notification can leave the cached listing outdated until a manual refresh or restart. Periodic refresh scans the folders again, so changes can be discovered even when their notifications were missed.
For network shares, select a periodic interval according to how long an outdated listing is acceptable. Shorter intervals mean more filesystem work. If a share is unreachable, a refresh cannot obtain its current contents.
The recommendation appears when At start is selected and HFS detects a network filesystem among the shared paths. Absence of this warning does not guarantee that filesystem notifications are reliable.
Below the setting:
- Updating means a scan is running or queued.
- Ready means no scan is running or queued; it does not guarantee that a network filesystem reported every change.
Click the status to see the number of cached entries and directories, and the directory subtrees still being updated. Refresh now requests a full refresh and is shown when the cache is ready.
Complete directory snapshots are replaced in the background. Cached data remains available during a refresh where it is safe to use; directories without a usable snapshot are read from disk.
The cache uses additional RAM and is rebuilt after HFS restarts. Larger shared trees require more memory and take longer to scan.
VFS permissions, masks, and renaming rules are still applied to each request. Downloads, ZIP creation, and other file operations continue to access the filesystem.