Skip to content

Related media objects seem to be cached in pods_api_post_save_pod_item_{podname} #4490

@lougreenwood

Description

@lougreenwood

I have a Pod (let's call it 'main') which has a related field to an extended Media Pod.

After saving the 'main' pod, I use the pods_api_post_save_pod_item_{podname} action to do some validation, and potentially delete the related media item.

It seems that after deleting the related media item when in pods_api_post_save_pod_item_{podname} action, subsequent calls to pods->display() or pods->field() which used to link to the 'now deleted' media object still returns the same payload, instead, it should now be returning empty (because the related media is gone).

I wonder if it's caching, we found and fixed a similar issue here but not specific to extended Media objects) - #3917

Metadata

Metadata

Assignees

Labels

Keyword: Has BountyDonor has reached out to us and funded this specificallyType: Bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions