Skip to content

Commit 049c969

Browse files
committed
Purge the root security page if there has been any changes
We already purged the version specific ones, but the root page got left unpurged which is incorrect when the actual versions of a cve changes. To keep it simple, unconditionally purge it when there are any updated CVEs at all.
1 parent 10f9ca9 commit 049c969

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pgweb/security/loader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def load_security_json():
6161
SELECT '/support/security/CVE-' || cve || '/' FROM versionload
6262
UNION
6363
SELECT '/support/security/' || tree::text || '/' FROM versionload
64+
UNION
65+
SELECT '/support/security/' WHERE EXISTS (SELECT 1 FROM cveload) OR EXISTS (SELECT 1 FROM versionload)
6466
),
6567
summary AS (
6668
SELECT cve, action || ' CVE' AS what FROM cveload

0 commit comments

Comments
 (0)