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

WordPress Trac noreply at wordpress.org
Wed May 26 12:33:15 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           |  Resolution:
 Keywords:                   |     Focuses:  performance
-----------------------------+------------------------------

Comment (by lucasbustamante):

 [comment:6 Mte90]

 Nice findings! The biggest impact seems to come from the "Dashboard
 Widget", since it's rendered on the dashboard screen of the administration
 panel, while the "RSS Block" would probably only load the feed if you add
 a "RSS block" to a page and render it on the front-end.

 By looking at this line https://github.com/WordPress/WordPress/blob/master
 /wp-admin/includes/dashboard.php#L1510, the feed comes from:
 https://wordpress.org/news/feed/

 Just removing the content from the feed that URL returns does not seem
 like a good solution, as it might break implementations that are relying
 on that URL to return the feed with the content, the same for the current
 transient feed.

 So I wonder if it would make sense to add a new endpoint, such as
 https://wordpress.org/news/feed?minimal, that would serve the feed without
 the content, to be stored as a separate transient `feed_minimal` for usage
 on all those places except the "RSS block".

 So we keep the current URL behavior as it is, as to not break any
 implementation that might be relying on that URL to return the content,
 but we add a control structure ?minimal to be able to fetch a smaller
 version of the feed for the places where the content are not necessary,
 such as the Dashboard Widget, which should probably be responsible for
 99.9% of the hits to that URL.

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


More information about the wp-trac mailing list