Notebook contents

How I check that a saved change reaches readers

A database commit and a public read are two different checks. Here’s how I verify that a change reaches the pages that use it.

One fact can appear on several pages

Imagine an organizer moving a class from 10:00 to 11:00. The editor saves, and the new time appears when you reopen it. The public schedule and the class detail page can still have separate cached copies. I treat persistence and what the reader sees as two checks.

Refresh what depends on the change

After the write commits, invalidate the affected cache entries so the next read can fetch the updated record. Keep the list with the shared save path so changes made from different screens get the same treatment. If invalidation fails, record the failure and retry it without repeating the edit.

Read it the way a visitor would

  1. Open both public pages before editing so you know what they currently show.
  2. Save through the normal editor, then reopen it to verify the stored value.
  3. Open the public schedule and detail page as a visitor and check for the same new time.

A check can pass in one process while another still serves the old value. When there are multiple instances, I warm a second instance before the edit and check it after the save too. I treat hosted verification as its own check.