You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""PyHP cache handler (files with modification time)"""
4
+
5
+
importmarshal
6
+
importos.path
7
+
fromosimportmakedirs
8
+
9
+
classhandler:
10
+
def__init__(self, cache_path, file_path):
11
+
self.cache_path=os.path.join(cache_path, file_path.strip(os.path.sep) +".cache") # use full path to allow indentical named files in different directories with cache_path as root
12
+
self.file_path=file_path
13
+
14
+
defis_outdated(self): # return True if cache is not created or needs refresh
0 commit comments