mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 00:23:12 +00:00
check cache
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1303 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
2ffb97a855
commit
50bc463bb1
1 changed files with 4 additions and 0 deletions
|
|
@ -237,6 +237,7 @@ class UrlData (object):
|
|||
|
||||
|
||||
def copyFromCache (self, cacheData):
|
||||
"""fill attributes from cache data"""
|
||||
self.errorString = cacheData["errorString"]
|
||||
self.validString = cacheData["validString"]
|
||||
if self.warningString:
|
||||
|
|
@ -250,6 +251,7 @@ class UrlData (object):
|
|||
|
||||
|
||||
def getCacheData (self):
|
||||
"""return all data values that should be put in the cache"""
|
||||
return {"errorString": self.errorString,
|
||||
"validString": self.validString,
|
||||
"warningString": self.warningString,
|
||||
|
|
@ -315,6 +317,8 @@ class UrlData (object):
|
|||
debug(BRING_IT_ON, "sleeping for", self.config['wait'], "seconds")
|
||||
time.sleep(self.config['wait'])
|
||||
t = time.time()
|
||||
if not self.checkCache():
|
||||
return
|
||||
# apply filter
|
||||
debug(BRING_IT_ON, "extern =", self.extern)
|
||||
if self.extern[0] and (self.config["strict"] or self.extern[1]):
|
||||
|
|
|
|||
Loading…
Reference in a new issue