[wp-trac] [WordPress Trac] #58286: Growing database due to unnecessary transients containing "g_url_details_response_"

WordPress Trac noreply at wordpress.org
Thu May 11 21:04:39 UTC 2023


#58286: Growing database due to unnecessary transients containing
"g_url_details_response_"
--------------------------+------------------------------
 Reporter:  davidki       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  6.2
 Severity:  critical      |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by petitphp):

 Hello @davidki

 When clicking on links in the editor, Gutenberg will attempt to display a
 preview of for external links (page title + primary image or favicon).

 The rest controller you mentioned will make a request to the remote URL to
 load the first hundred bytes and retrieve the @head@ tag to extract the
 relevant information. To speed up the process and avoid spamming the
 remote servers, each response will be cached in a transient for one hour.

 At first glance, it doesn't seem to be a way of disabling the preview
 mechanism in the editor. You can open
 [https://github.com/WordPress/gutenberg/issues an issue in the Gutenberg
 repository] to propose that enhancement.

 As for the transients, they should be cleaned automatically every day
 after they expired.

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


More information about the wp-trac mailing list