mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-06 09:57:57 +00:00
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:
@ -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()
|
||||
|
Reference in New Issue
Block a user