diff --git a/etc/config/compiler-explorer.amazon.properties b/etc/config/compiler-explorer.amazon.properties index e6c938e1c..14bf91da2 100644 --- a/etc/config/compiler-explorer.amazon.properties +++ b/etc/config/compiler-explorer.amazon.properties @@ -20,6 +20,7 @@ pageloadUrl=https://lambda.compiler-explorer.com/pageload storageSolution=s3 healthCheckFilePath=/efs/.health showSponsors=true +logCompilerCacheAccesses=true eventLoopMeasureIntervalMs=50 eventLoopLagThresholdWarn=100 diff --git a/lib/base-compiler.js b/lib/base-compiler.js index 8df2f00e1..7f0c64e65 100644 --- a/lib/base-compiler.js +++ b/lib/base-compiler.js @@ -246,6 +246,9 @@ export class BaseCompiler { const key = this.getCompilerCacheKey(compiler, args, options); let result = await this.env.compilerCacheGet(key); + if (this.env.ceProps('logCompilerCacheAccesses', false)) { + logger.info(`Cache ${JSON.stringify(key)} ${result ? 'hit' : 'miss'}`); + } if (!result) { result = await this.env.enqueue(async () => exec.execute(compiler, args, options)); if (result.okToCache) {