From b061d59044b0cc689cf270617364ab36c8a0792f Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 19 Mar 2014 16:15:05 +0000 Subject: gf -server: add a command to manually flush the PGF cache This can be used if the cloud service seems slow, but it would probably be better to automatically expire unused PGFs from the cache after some time. --- src/compiler/GFServer.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler') diff --git a/src/compiler/GFServer.hs b/src/compiler/GFServer.hs index dc805906f..cad43a97d 100644 --- a/src/compiler/GFServer.hs +++ b/src/compiler/GFServer.hs @@ -152,6 +152,7 @@ handle logLn documentroot state0 cache execute1 stateVar -- "/start" -> "/parse" -> parse (decoded qs) "/version" -> return (ok200 gf_version) + "/flush" -> do PS.flushPGFCache cache; return (ok200 "flushed") '/':rpath -> -- This code runs without mutual exclusion, so it must *not* -- use/change the cwd. Access files by absolute paths only. -- cgit v1.2.3