Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not clear cache when a relation has been updated #66

Open
willryanuk opened this issue Aug 18, 2023 · 5 comments · May be fixed by #86
Open

Does not clear cache when a relation has been updated #66

willryanuk opened this issue Aug 18, 2023 · 5 comments · May be fixed by #86

Comments

@willryanuk
Copy link

One of my Collection Types (Broadcast) has a "relation" to a Host... However, when i update the Host (e.g. change their name), the Broadcasts endpoint does not update the relation to reflect the new name.

@mvaisberg
Copy link

hey @willryanuk did you find a way to clean the cache of the relations?

@willryanuk
Copy link
Author

@mvaisberg i think I either pressed "Purge REST Cache" on the parent collection, or perhaps just saved it, and that then regenerated the entry, and the cache was cleared.

@de-shine
Copy link

Can this case be automated to clear the cache for all the contents that have relation to that updated relation entry?

@Boegie19
Copy link
Member

Boegie19 commented Mar 15, 2024

@de-shine if the strategy.clearRelatedCache = true than this should already happen

still since multiple people are saying someting about it there mind be a bug in tbe logic

just as a extra note: it will clear everyting from any related contentypes

@jomarmontuya
Copy link

I've also encountered the same, when content relation is updated the cache where it was use is not purge automatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants