Clear custom endpoint cache when custom post type is saved
-
Hello. I have a custom post type called
downloads
that I have created a custom REST controller for. I have registered the endpoints with thewp_rest_cache/allowed_endpoints
filter. The caching is working. I need to clear that cache whenever adownloads
post is updated though. If my downloads related endpoints are all grouped undervc/v1/downloads
, how would I programmatically clear everything undervc/v1/downloads
when a download is updated?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Clear custom endpoint cache when custom post type is saved’ is closed to new replies.