Add a varnish_purge() function to be used in local installs

This commit is contained in:
Magnus Hagander
2011-12-11 14:15:41 +01:00
parent d5dbf9bec5
commit a331c1f677

15
sql/varnish_local.sql Normal file
View File

@ -0,0 +1,15 @@
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 bigint
AS $$
SELECT 1::bigint;
$$ LANGUAGE 'sql';
COMMIT;