Skip to content

Commit

Permalink
support custom cache folders (does anyone use this?)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Oct 14, 2014
1 parent 6206b4e commit a8a8fdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nikola/plugins/command/check.py
Expand Up @@ -156,11 +156,11 @@ def analyze(self, task, find_sources=False):
try:
filename = task.split(":")[-1]

if filename.startswith('cache'):
if filename.startswith(self.site.config['CACHE_FOLDER']):
# Do not look at links in the cache, which are not parsed by
# anyone and may result in false positives. Problems arise
# with galleries, for example. (Issue #1446)
self.logger.notice("Ignoring {0}".format(filename))
# with galleries, for example. Full rationale: (Issue #1446)
self.logger.notice("Ignoring {0} (in cache, links may be incorrect)".format(filename))
return False

d = lxml.html.fromstring(open(filename).read())
Expand Down

0 comments on commit a8a8fdd

Please sign in to comment.