diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-07-08 12:00:02 +1200 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-07-08 12:00:23 +1200 |
commit | f2bcc24eec84c4632c88b5a35821f7e642d41dc5 (patch) | |
tree | e45e5e69a52d49f617e23920b37bd769bb067878 /src/emulators/graphical_emulator.rs | |
parent | 82a10fb3ae8c935e6c325a1b458e7fe6c0b90df6 (diff) | |
download | bedrock-pc-f2bcc24eec84c4632c88b5a35821f7e642d41dc5.zip |
Invalidate the cached directory in the file device after a duration
The most recent directory accessed by the file device is cached to
improve performance when rapidly ascending and descending between
sibling entries. This causes an issue where, in a sandboxed root
directory that contains only files, a program will be unable to
invalidate the cache and any changes to the directory outside the
program will not be seen by the program.
To fix this, the directory cache now only lasts for one second.
Diffstat (limited to 'src/emulators/graphical_emulator.rs')
0 files changed, 0 insertions, 0 deletions