[wp-trac] [WordPress Trac] #22531: integrate fetch_json($url)

WordPress Trac noreply at wordpress.org
Sun Jun 16 13:52:44 UTC 2013


#22531: integrate fetch_json($url)
-------------------------+-----------------------
 Reporter:  alexvorn2    |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------
Changes (by alexvorn2):

 * status:  closed => reopened
 * resolution:  wontfix =>


Comment:

 I want to reopen this because I think It would be very helpful to have a
 fetch_json function with cache, so retrieving the URL data with
 `json_decode( wp_remote_retrieve_body( wp_remote_get( $url ) ) );` every
 time, makes the page load slower then usual.

 The cache should store the data for at least 12 hours as in the fetch_feed
 function.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/22531#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list