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:
calvin 2003-07-28 11:25:40 +00:00
parent 087eb8f3b6
commit 09d916058a

View file

@ -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