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

REST API: Content update should clear caches #1507

Open
eteubert opened this issue Sep 27, 2024 · 0 comments
Open

REST API: Content update should clear caches #1507

eteubert opened this issue Sep 27, 2024 · 0 comments
Labels

Comments

@eteubert
Copy link
Member

eteubert commented Sep 27, 2024

Content changes using the forms in the WordPress admin are trigger a cache purge:

\Podlove\Cache\TemplateCache::get_instance()->setup_purge();

However, when using the REST API, this does not happen yet. So changes made via the REST API are not immediately visible to visitors.

Instead, all modifying operations (create, update, delete) affecting public data should call the cache purge above.

(Alternatively, add an API endpoint to clear the caches. But I don't think that this is a responsibility for the API user. It should happen automatically.)

via podlove/documentation#42

@eteubert eteubert added the API label Sep 27, 2024
eteubert added a commit that referenced this issue Oct 21, 2024
eteubert added a commit that referenced this issue Nov 28, 2024
eteubert added a commit that referenced this issue Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant