Skip to content

[Cache] Purge is inconsistent for specific types of updates #2302

Description

@kodster28

Description

Broadly, the Workers Cache and Object Cache work great, but there are specific instances in which they don't consistently apply for edits made in the admin panel.

One way of approaching this is #2297, but another would be looking into the logic around cache clearing to solve the underlying issues:

  • Update OG image
  • Update the excerpt
  • Update images within the body of a post (but no other text)
  • Update HTML blocks within the body of a post (but no other text)

Feels like an issue with the object cache, but that's for y'all to determine.

Steps to reproduce

  1. Create an EmDash worker with the Workers Cache / Object Cache enabled.
  2. Make a content entry and then make updates to one of the items noted above.
  3. Look at the published output.

If you do this a few times you can usually repro.

This might also be solved by #2280, but worth having a dedicated issue in case it isn't (specifically in the excerpt / images / SEO items).

Environment

  • emdash: 0.31.0
  • Cloudflare Workers + Hyperdrive + Object cache and workers cache enabled

Logs / error output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions