[wp-trac] [WordPress Trac] #53170: Reduce the transient size of WordPress Events and News feeds

WordPress Trac noreply at wordpress.org
Fri May 7 17:34:48 UTC 2021


#53170: Reduce the transient size of WordPress Events and News feeds
-----------------------------+-----------------------------
 Reporter:  lucasbustamante  |      Owner:  (none)
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Widgets          |    Version:  5.7.1
 Severity:  normal           |   Keywords:
  Focuses:  performance      |
-----------------------------+-----------------------------
 If we export the database created in a clean WordPress installation that
 blocks external connections with `WP_HTTP_BLOCK_EXTERNAL`, the exported
 file size is just **34kb**.

 Without blocking external connections, the exported SQL file size is
 **746kb**.

 This whopping difference of 712kb comes from WordPress Events and News
 feeds: https://github.com/WordPress/WordPress/blob/master/wp-
 admin/includes/dashboard.php#L1490

 That downloads these feeds and stores them as transients in the database:
 - https://wordpress.org/news/feed/ (125kb~)
 - https://planet.wordpress.org/feed/ (550kb~)

 This seems to be unnecessary, given that the content that is actually
 displayed in the widget is just the event/news name and a link:

 [[Image(https://i.imgur.com/0vWVwE0.jpg)]]

 With this ticket, I would like to suggest reducing the transient size of
 the WordPress News and Events widget feed to the minimum possible.

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


More information about the wp-trac mailing list