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:
Am I doing something wrong or does “WP REST Cache” just not work with this kind of data?
- The topic ‘Question about custom endpoints’ is closed to new replies.