Skip to content

Commit

Permalink
Rely on OS level access time updates of http cache files
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Jan 27, 2024
1 parent 3c03cf8 commit a420224
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package_control/http_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def get(self, key):

# update filetime to prevent unmodified cache files
# from being deleted, if they are frequently accessed.
os.utime(cache_file)
# NOTE: try to rely on OS updating access time (`os.stat(path).st_atime`)
# os.utime(cache_file)

with open(cache_file, 'rb') as fobj:
return fobj.read()
Expand Down

0 comments on commit a420224

Please sign in to comment.