@@ -23,7 +23,7 @@ export class SparqlBenchmarkRunner {
2323 protected readonly logger ?: ( message : string ) => void ;
2424 protected readonly resultAggregator : IResultAggregator ;
2525 protected readonly availabilityCheckTimeout : number ;
26- protected readonly sendResetSignalBetweenQuerySets : boolean ;
26+ protected readonly invalidateCacheBetweenSetExecutions : boolean ;
2727 public readonly endpointFetcher : SparqlEndpointFetcher ;
2828
2929 public constructor ( options : ISparqlBenchmarkRunnerArgs ) {
@@ -39,7 +39,7 @@ export class SparqlBenchmarkRunner {
3939 this . requestDelay = options . requestDelay ;
4040 this . bindingsHashAlgorithm = 'md5' ;
4141 this . availabilityCheckTimeout = options . availabilityCheckTimeout ?? 10_000 ;
42- this . sendResetSignalBetweenQuerySets = options . resetCacheBetweenSetExecutions ?? false ;
42+ this . invalidateCacheBetweenSetExecutions = options . invalidateCacheBetweenSetExecutions ?? false ;
4343 this . endpointFetcher = new SparqlEndpointFetcher ( {
4444 additionalUrlParams : options . additionalUrlParams ,
4545 timeout : options . timeout ,
@@ -132,14 +132,14 @@ export class SparqlBenchmarkRunner {
132132 }
133133
134134 // Trigger the worker restart after completing the query set execution
135- if ( this . sendResetSignalBetweenQuerySets ) {
136- this . log ( `Sending cache refresh signal to trigger worker restart.` ) ;
135+ if ( this . invalidateCacheBetweenSetExecutions ) {
136+ this . log ( `Sending cache invalidation signal to trigger worker restart.` ) ;
137137 try {
138- const refreshHeaders = new Headers ( ) ;
139- refreshHeaders . set ( 'x-comunica-refresh-cache' , 'true' ) ;
138+ const invalidationHeaders = new Headers ( ) ;
139+ invalidationHeaders . set ( 'x-comunica-refresh-cache' , 'true' ) ;
140140 await fetch ( this . endpoint , {
141141 method : 'GET' ,
142- headers : refreshHeaders ,
142+ headers : invalidationHeaders ,
143143 } ) ;
144144 } catch {
145145 // Suppress error: The server terminates the connection forcefully during shutdown.
@@ -351,7 +351,7 @@ export interface ISparqlBenchmarkRunnerArgs {
351351 /**
352352 * If the engine should reset the cache between executions
353353 */
354- resetCacheBetweenSetExecutions ?: boolean ;
354+ invalidateCacheBetweenSetExecutions ?: boolean ;
355355 /**
356356 * The delay between subsequent requests sent to the server.
357357 */
0 commit comments