Purge the correct URL when loading developer docs

They're /docs/devel/, not /docs/0/ - that's just used to cheat the
version system  being a decimal field...
This commit is contained in:
Magnus Hagander
2011-12-04 15:01:43 +01:00
parent f07c0db120
commit 585a0e2efe

View File

@ -105,6 +105,10 @@ for member in tf:
tf.close()
# Issue varnish purge for all docs of this version
if ver == "0":
# Special handling of developer docs...
ver = "devel"
curs.execute("SELECT varnish_purge('^/docs/' || %(v)s || '/')", {'v': ver})
transaction.commit_unless_managed()