Skip to content

Commit

Permalink
Don't cache the spatial graph
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Oct 1, 2024
1 parent b65fa5e commit d9d2deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/library/shared/spatial/spatial-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function reloadSpatialGraph(endpoint) {
* @param {boolean} useCache whether to create/use a cached SpatialGraph
* @returns {Promise<SpatialGraph>} 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 {
Expand Down
2 changes: 1 addition & 1 deletion src/server/routes/v1/utils/get-session-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ QUEUE.on('process', (job, jobDone) => {
workerData: job.data,
});
worker.on('exit', async (_exitCode) => {
await reloadSpatialGraph(sparqlEndpoint());
// await reloadSpatialGraph(sparqlEndpoint());
jobDone();
});
});
Expand Down

0 comments on commit d9d2deb

Please # to comment.