File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -157,10 +157,10 @@ class SqliteCache(CacheManagerInterface):
157157 _required_framework_version = (2 , 0 , 0 )
158158 _version = (1 , 0 , 0 )
159159
160- cache_period = '-3 days'
161160
162161 def __init__ (self , filename : str ):
163162 super ().__init__ (filename )
163+ self .cache_period = constants .SQLITE_CACHE_PERIOD
164164 try :
165165 self ._database = self ._connect_storage (filename )
166166 except sqlite3 .DatabaseError :
Original file line number Diff line number Diff line change 6363CACHE_PATH = os .path .join (os .path .expanduser ("~" ), ".cache" , "volatility3" )
6464"""Default path to store cached data"""
6565
66+ SQLITE_CACHE_PERIOD = '-1 month'
67+ """SQLite time modifier for how long each item is valid in the cache for"""
68+
6669if sys .platform == 'win32' :
6770 CACHE_PATH = os .path .realpath (os .path .join (os .environ .get ("APPDATA" , os .path .expanduser ("~" )), "volatility3" ))
6871os .makedirs (CACHE_PATH , exist_ok = True )
You can’t perform that action at this time.
0 commit comments