Retain content-validated message fragments across unrelated commits

This commit is contained in:
GPT on behalf of DHH
2026-10-08 12:00:45 +02:00
parent 59e1c6d3d7
commit 74381e8b58
10 changed files with 48 additions and 9 deletions
+7
View File
@@ -1,5 +1,12 @@
# Native view caches share one byte budget across every database generation.
class FragmentCache
# Only callers that fingerprint every rendered dependency may omit the epoch.
ContentKey = Data.define(:digest) do
def cache_key
digest
end
end
STORE = ActiveSupport::Cache::MemoryStore.new(size: 64.megabytes)
private_constant :STORE