[wp-trac] [WordPress Trac] #54849: Site transients cause DB errors when installing

WordPress Trac noreply at wordpress.org
Thu Feb 17 19:51:45 UTC 2022

#54849: Site transients cause DB errors when installing
 Reporter:  peterwilsoncc                        |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9.1
Component:  Options, Meta APIs                   |     Version:  5.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major dev-    |     Focuses:
  reviewed                                       |
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


 In [changeset:"52767" 52767]:
 #!CommitTicketReference repository="" revision="52767"
 Options: Disable transients while installing.

 Prevent the transient setters and getters from attempting to use the
 database table before they exist during the installation process.

 During installation transients now use the `wp_cache_*()` functions on all
 sites, including those without a persistent cache, to prevent database
 errors. The use of the caching functions stores the data in memory for the
 duration of the request to account for transient data that is used
 multiple times during installation.

 Props dd32, audrasjb, tnolte, antonvlasenko, noisysocks, peterwilsoncc.
 Merges [52694] to the 5.9 branch.
 Fixes #54849.

Ticket URL: <https://core.trac.wordpress.org/ticket/54849#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list