From d9d2debd694f16129d64fbe9062c0303d9d0e514 Mon Sep 17 00:00:00 2001 From: "Bruce W. Herr II" Date: Tue, 1 Oct 2024 12:46:02 -0400 Subject: [PATCH] Don't cache the spatial graph --- src/library/shared/spatial/spatial-graph.js | 2 +- src/server/routes/v1/utils/get-session-token.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/shared/spatial/spatial-graph.js b/src/library/shared/spatial/spatial-graph.js index a2ca99c..9810db3 100644 --- a/src/library/shared/spatial/spatial-graph.js +++ b/src/library/shared/spatial/spatial-graph.js @@ -29,7 +29,7 @@ export async function reloadSpatialGraph(endpoint) { * @param {boolean} useCache whether to create/use a cached SpatialGraph * @returns {Promise} a promise for an initialized SpatialGraph */ -export async function getSpatialGraph(endpoint, useCache = true) { +export async function getSpatialGraph(endpoint, useCache = false) { if (!useCache) { return new SpatialGraph(endpoint).initialize(); } else { diff --git a/src/server/routes/v1/utils/get-session-token.js b/src/server/routes/v1/utils/get-session-token.js index ceba22a..2bdbab5 100644 --- a/src/server/routes/v1/utils/get-session-token.js +++ b/src/server/routes/v1/utils/get-session-token.js @@ -11,7 +11,7 @@ QUEUE.on('process', (job, jobDone) => { workerData: job.data, }); worker.on('exit', async (_exitCode) => { - await reloadSpatialGraph(sparqlEndpoint()); + // await reloadSpatialGraph(sparqlEndpoint()); jobDone(); }); });