Remove references to obsolete staticHttpCache.

This commit is contained in:
Dillon Kearns 2023-01-22 09:45:18 -08:00
parent 9600de126b
commit 3622c715ad
2 changed files with 0 additions and 10 deletions

View File

@ -6,8 +6,6 @@ import { stat } from "fs/promises";
import { parentPort, threadId, workerData } from "worker_threads";
const compiledElmPath = path.join(process.cwd(), "elm-stuff/elm-pages/elm.js");
global.staticHttpCache = {};
async function run({ mode, pathname, serverRequest, portsFilePath }) {
console.time(`${threadId} ${pathname}`);
try {

View File

@ -242,7 +242,6 @@ function runElmApp(
.replace(/content\.dat\/?$/, "");
const modifiedRequest = { ...request, path: route };
// console.log("StaticHttp cache keys", Object.keys(global.staticHttpCache));
app = elmModule.Elm.Main.init({
flags: {
mode,
@ -276,9 +275,6 @@ function runElmApp(
console.log(fromElm.value);
} else if (fromElm.tag === "ApiResponse") {
const args = fromElm.args[0];
if (mode === "build") {
global.staticHttpCache = args.staticHttpCache;
}
resolve({
kind: "api-response",
@ -288,10 +284,6 @@ function runElmApp(
});
} else if (fromElm.tag === "PageProgress") {
const args = fromElm.args[0];
if (mode === "build") {
global.staticHttpCache = args.staticHttpCache;
}
if (isBytes) {
resolve({
kind: "bytes",