[wp-trac] [WordPress Trac] #48838: Consider "caching" embedded REST API requests

WordPress Trac noreply at wordpress.org
Fri Nov 29 18:38:19 UTC 2019


#48838: Consider "caching" embedded REST API requests
-------------------------------+-----------------------------
 Reporter:  TimothyBlynJacobs  |      Owner:  (none)
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  REST API           |    Version:  4.4
 Severity:  normal             |   Keywords:
  Focuses:  performance        |
-------------------------------+-----------------------------
 Inspired by #46249. What if the REST API "cached" embeds processed by
 `response_to_data`. This would help when embedding on collection responses
 with posts that share property values.

 We'd use the URL as the cache key. And the caching should be safe since
 it'd be isolated to `response_to_data` and we could clear it after
 `response_to_data` completes. The requests are also all `GET` requests.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48838>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list