mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-02 03:44:43 +00:00
also accept a list of cache keys
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@960 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
087eb8f3b6
commit
09d916058a
1 changed files with 5 additions and 1 deletions
|
|
@ -378,7 +378,11 @@ class UrlData:
|
|||
def putInCache (self):
|
||||
cacheKey = self.getCacheKey()
|
||||
if cacheKey and not self.cached:
|
||||
self.config.urlCache_set(cacheKey, self)
|
||||
if type(cacheKey) == type([]):
|
||||
for key in cacheKey:
|
||||
self.config.urlCache_set(key, self)
|
||||
else:
|
||||
self.config.urlCache_set(cacheKey, self)
|
||||
self.cached = 1
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue