1 parent 5ba487c commit d97a2d8Copy full SHA for d97a2d8
1 file changed
tools/purgehook/purgehook.py
@@ -54,7 +54,7 @@
54
elif l.startswith('data/'):
55
# Data files map to xkeys with the same name as the file prefixed by data_
56
curs.execute("SELECT varnish_purge_xkey(%(key)s)", {
57
- 'key': 'data_{}'.format(os.path.splitext(os.path.basename(l))[0]),
+ 'key': 'data_{}'.format(os.path.splitext(l[5:])[0].replace('/', '_')),
58
})
59
conn.commit()
60
conn.close()
0 commit comments