forked from Botanical/BotanJS
Migrate old externs 8/x
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user