mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-03 12:24:46 +00:00
do not store aliases
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2550 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
304941fbe3
commit
d2a8764d18
2 changed files with 0 additions and 12 deletions
|
|
@ -199,12 +199,6 @@ class Cache (linkcheck.lock.AssertLock):
|
|||
# move entry from self.in_progress to self.checked
|
||||
del self.in_progress[key]
|
||||
self.checked[key] = data
|
||||
# add all aliases also to checked cache to avoid recursion
|
||||
for key in url_data.aliases:
|
||||
if key not in self.checked and key not in self.in_progress:
|
||||
linkcheck.log.debug(linkcheck.LOG_CACHE,
|
||||
"Cache alias %r...", key)
|
||||
self.checked[key] = data
|
||||
finally:
|
||||
self.release()
|
||||
|
||||
|
|
|
|||
|
|
@ -166,12 +166,6 @@ class UrlBase (object):
|
|||
# cache keys, are set by build_url() calling set_cache_keys()
|
||||
self.cache_url_key = None
|
||||
self.cache_content_key = None
|
||||
# Store a list of aliases since the same resource can be known
|
||||
# under several URLs. This is used for example on HTTP 30[12]
|
||||
# redirections.
|
||||
# Note that aliases are saved as-is, not through the cache-key-
|
||||
# generating method set_cache_keys().
|
||||
self.aliases = []
|
||||
|
||||
def set_result (self, msg, valid=True):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue