Where to add custom domain code
-
Hi there,
I’m very new to WordPress but I am a developer trying to add caching to an existing WP REST API and I have come across your plugin hoping it can help. I have however, never used PHP in my life and never edited plugin code before so I’m just looking for a bit of basic assistance! I am using the ACF to REST API plugin and have various endpoints that I’d like to add browser caching to such as:
/wp-json/acf/v3/pages/1611
/wp-json/acf/v3/pages/59
/wp-content/uploads/2019/03/HomepageMobileMar19-3.jpg
/wp-json/acf/v3/get_blog_block_postsI have seen your FAQ on adding code for a custom endpoint but frankly I have no idea where to put this. Does it just go in wp-rest-cache.php?
Thanks in advance ??
- The topic ‘Where to add custom domain code’ is closed to new replies.