summaryrefslogtreecommitdiff
path: root/store.py
diff options
context:
space:
mode:
Diffstat (limited to 'store.py')
-rw-r--r--store.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/store.py b/store.py
index 8d0c79e..7e6502a 100644
--- a/store.py
+++ b/store.py
@@ -2310,8 +2310,12 @@ class Store:
def _invalidate_cache(self):
if self.config.fastly_api_key:
# Build up a list of tags we want to purge
- tags = ["pkg~%s" % pkg if pkg is not None else "simple-index"
- for pkg in self._changed_packages]
+ tags = []
+ for pkg in self._changed_packages:
+ if pkg is None:
+ tags += ["simple-index"]
+ else:
+ tags += [safe_name(pkg).lower()]
# We only need to bother to enqueue a task if we have something
# to purge