summaryrefslogtreecommitdiff
path: root/sql/varnish_local.sql
blob: 926eb14269326d6914bb024c61599074eaf5ba41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;