Skip to content

Making changes to meta objects leaves behind stale object caches #172

@schlessera

Description

@schlessera

The commands that manipulate meta data leave behind stale object caches.

I noticed this here: #158 (comment)

Basically, the add_metadata() call does not include the additional cache-busting call that add_site_meta() includes. The same problem applies for all add, update and delete calls on meta objects.

Most pragmatic solution:
Provide a default mapping of CRUD function in the base object that can be optionally overridden in the specific meta commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcommand:comment-meta-addRelated to 'comment meta add' commandcommand:comment-meta-deleteRelated to 'comment meta delete' commandcommand:comment-meta-patchRelated to 'comment meta patch' commandcommand:comment-meta-updateRelated to 'comment meta update' commandcommand:network-meta-addRelated to 'network meta add' commandcommand:network-meta-deleteRelated to 'network meta delete' commandcommand:network-meta-patchRelated to 'network meta patch' commandcommand:network-meta-updateRelated to 'network meta update' commandcommand:post-meta-addRelated to 'post meta add' commandcommand:post-meta-deleteRelated to 'post meta delete' commandcommand:post-meta-patchRelated to 'post meta patch' commandcommand:post-meta-updateRelated to 'post meta update' commandcommand:term-meta-addRelated to 'term meta add' commandcommand:term-meta-deleteRelated to 'term meta delete' commandcommand:term-meta-patchRelated to 'term meta patch' commandcommand:term-meta-updateRelated to 'term meta update' command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions