diff options
author | Austin Morton <austinpmorton@gmail.com> | 2019-08-23 10:10:16 -0400 |
---|---|---|
committer | Austin Morton <austinpmorton@gmail.com> | 2019-08-23 10:10:16 -0400 |
commit | be8b8aa2454ffae274516118ea47733824a3f941 (patch) | |
tree | 86d8527fe45e7afd4424f4ef70ef34de556a58fb /lib/compilers/swift.js | |
parent | 12380a4a954ad80465ca69fe5f7f9b3d88e70d48 (diff) | |
download | compiler-explorer-be8b8aa2454ffae274516118ea47733824a3f941.tar.gz compiler-explorer-be8b8aa2454ffae274516118ea47733824a3f941.zip |
Avoid deleting file when updating a key in disk cache
When setting a key, the file is written to disk first and then
the cache entry is set. When the key already exists, the dispose
callback will end up deleting the *updated* file from disk.
This results in a cache entry with no corresponding file on disk.
Diffstat (limited to 'lib/compilers/swift.js')
0 files changed, 0 insertions, 0 deletions