Migrate old externs 8/x

This commit is contained in:
2026-06-17 09:03:19 +08:00
parent c2fb5b205a
commit 00fe7ca3bb
33 changed files with 228 additions and 119 deletions
+6 -1
View File
@@ -4,6 +4,7 @@ import (
"flag"
"log"
"net/http"
"os"
"strings"
"time"
@@ -24,12 +25,16 @@ func main() {
log.Fatal(err)
}
useCache := os.Getenv("RESOLVER_CACHE")
options := compilecache.Options{
Workers: 2,
QueueSize: 128,
DisableCache: false,
DisableCache: (useCache == "1"),
}
r.DisableCache = options.DisableCache
h := handler{
r: r,
jsCache: compilecache.New(closure.NewCompiler(), options),