Files
mattgodbolt-moltyandClaude Opus 5 1d76a08711 Move the mask above cachePut instead of masking on read
Masking on the way out of the cache treated the symptom. The real
problem is that we store an unmasked result, so move cleanupResult()
above cachePut() and drop the cache-hit call.

The earlier justification for masking on read was that it would also
repair entries already cached unmasked. That was wrong: cache entries
live under cache/ in storage.godbolt.org, which has a lifecycle rule
expiring them after 1 day (terraform/s3.tf, "Remove cached items"), so
anything cached before this ships ages out on its own. I had checked
that cachePut sets no Expires header and wrongly concluded entries were
permanent, when expiry is enforced by the bucket rather than per-object.

Nothing between the two positions reads compilationOptions or
inputFilename: the intervening block only touches result.execResult and
its buildResult.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-24 21:46:49 -05:00
..
2026-07-02 18:26:35 +01:00
2025-07-28 10:34:46 -05:00
2026-05-23 14:47:16 +03:00