Skip to content

Commit e66382c

Browse files
committed
Fix cache invalidation (#324)
1 parent 5671e7d commit e66382c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/fetch.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def _fetch_locations(known_location):
5858
sys.stdout.flush()
5959
try:
6060
process = subprocess.Popen(
61-
cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
62-
universal_newlines=True)
61+
cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
62+
universal_newlines=True)
6363
except OSError:
6464
print("\nERROR: %s" % cmd)
6565
raise
@@ -149,9 +149,11 @@ def _update_adapter(adptr):
149149
if entries:
150150
_log("%s Entries to be updated: %s", adptr, len(entries))
151151

152+
name = adptr.name()
152153
for entry in entries:
153-
_log("+ ivalidating %s", entry)
154-
cache.delete(entry)
154+
cache_name = name + ":" + entry
155+
_log("+ invalidating %s", cache_name)
156+
cache.delete(cache_name)
155157

156158
if entries:
157159
_log("Done")

0 commit comments

Comments
 (0)