208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
# forcibly checking file if index holds Pragma header
if not reload and 'Pragma' in record and record['Pragma'] == 'no-cache':
info +='\nPragma on: recheck imminent.'
recheck = True
# skipping file processing if there's no need to recheck it and we have checked it at least 4 hours ago
if not recheck and not reload and '_time' in record and (datetime.datetime.now() - datetime.timedelta(hours = 4) - record['_time']).days < 0:
recheck = True
print(info)
if reload or recheck:
try:
request = 'http://' + config['root'] + self.path
|
|
>
|
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
# forcibly checking file if index holds Pragma header
if not reload and 'Pragma' in record and record['Pragma'] == 'no-cache':
info +='\nPragma on: recheck imminent.'
recheck = True
# skipping file processing if there's no need to recheck it and we have checked it at least 4 hours ago
if not recheck and not reload and '_time' in record and (record['_time'] - datetime.datetime.now() + datetime.timedelta(hours = 4)).days < 0:
info += '\nFile is old - rechecking.'
recheck = True
print(info)
if reload or recheck:
try:
request = 'http://' + config['root'] + self.path
|