[wp-trac] [WordPress Trac] #53170: Reduce the transient size of WordPress Events and News feeds
WordPress Trac
noreply at wordpress.org
Wed May 26 09:36:34 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 Mte90):
Thanks now is more clear, so the guilty transient is `_transient_feed_`
that include the whole feed.
This is the file that save the feed in a transient
https://github.com/WordPress/wordpress-
develop/blob/2382765afa36e10bf3c74420024ad4e85763a47c/src/wp-includes
/class-wp-feed-cache-transient.php and this one that fire the saving in
the cache https://github.com/WordPress/wordpress-
develop/blob/32151af6e47e0fda4c7ac1796eb8ac8916817517/src/wp-
includes/feed.php#L805
Thinking of this, I am wondering if we clean all the transient generated
by the feed support from the content is a good thing. As other people can
use it also for other things, so a way should be ignoring content just for
specific feeds.
As this can impact:
* RSS block: https://github.com/WordPress/wordpress-
develop/blob/2382765afa36e10bf3c74420024ad4e85763a47c/src/wp-
includes/blocks/rss.php#L16
* RSS widget: https://github.com/WordPress/wordpress-
develop/blob/c622c4baddebb621bf3b496d2c8b6de4779f00c8/src/wp-
includes/widgets/class-wp-widget-rss.php#L66
* RSS widget functions: https://github.com/WordPress/wordpress-
develop/blob/00bc227eb8e7b09e9eb6390a74a23a3f3fcc2383/src/wp-
includes/widgets.php#L1527
* Dashboard widget: https://github.com/WordPress/wordpress-
develop/blob/9d3e32ecbf1a8c8964a8b51b225ec3c1ba2f53f1/src/wp-
admin/includes/dashboard.php#L1242
Looking at these only the block use the excerpt from the feed RSS so in
that one is needed to keep that content but in the other ones is not
required.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53170#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list