Commits

Georg Brandl committed 4e2bf6e

Fix the intersphinx inventory caching.

Comments (0)

Files changed (1)

sphinx/ext/intersphinx.py

         # decide whether the inventory must be read: always read local
         # files; remote ones only if the cache time is expired
         if '://' not in inv or uri not in cache \
-               or cache[uri][0] < cache_time:
+               or cache[uri][1] < cache_time:
             app.info('loading intersphinx inventory from %s...' % inv)
             invdata = fetch_inventory(app, uri, inv)
             if invdata: