Question about custom endpoints
-
I have a created a custom endpoint that outputs data in GeoJSON format and would like to cache its output. I have registered the endpoint using the ‘wp_rest_cache/allowed_endpoints’ filter hook as described in the FAQ but no data from this endpoint is being cached (neither in “Endpoint API Caches” nor in “Item API Caches”).
You can find a dummy plugin I created for testing this at the following link:
https://gist.github.com/mightymt/461c804837aed7d3f93278d9842a9a47
Am I doing something wrong or does “WP REST Cache” just not work with this kind of data?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Question about custom endpoints’ is closed to new replies.