podlove-publisher icon indicating copy to clipboard operation
podlove-publisher copied to clipboard

REST API: Content update should clear caches

Open eteubert opened this issue 4 months ago • 0 comments

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 https://github.com/podlove/documentation/pull/42

eteubert avatar Sep 27 '24 11:09 eteubert