Files
postgres-web/sql/varnish_local.sql
Magnus Hagander 76900b7657 Teach varnish purging code about xkey purges
It's just another  type of purge, so it's added as an extra option with
'K' as the key (as 'X' was already taken).
2018-07-06 15:32:14 +02:00

25 lines
438 B
PL/PgSQL

BEGIN;
--
-- "cheating" version of the varnish_purge() function
-- that can be used on a local installation that doesn't
-- have any frontends.
--
CREATE OR REPLACE FUNCTION varnish_purge(url text)
RETURNS void
AS $$
$$ LANGUAGE 'sql';
CREATE OR REPLACE FUNCTION varnish_purge_expr(expr text)
RETURNS void
AS $$
$$ LANGUAGE 'sql';
CREATE OR REPLACE FUNCTION varnish_purge_xkey(key text)
RETURNS void
AS $$
$$ LANGUAGE 'sql';
COMMIT;