[wp-trac] [WordPress Trac] #60457: Plugin Dependencies: Running update_option within wp-settings can be catastrophic for a high traffic site
WordPress Trac
noreply at wordpress.org
Fri Feb 9 22:05:29 UTC 2024
#60457: Plugin Dependencies: Running update_option within wp-settings can be
catastrophic for a high traffic site
--------------------------+--------------------------
Reporter: dd32 | Owner: costdev
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.5
Component: Plugins | Version: trunk
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses: performance
--------------------------+--------------------------
Comment (by azaozz):
Right, DB writes should never happen on front-end requests. This can cause
big problems on busy sites especially with more complex hosting setup, DB
replication, etc. They can go down easily.
There is another patch in the works (afaik) for this exact place (where
plugin files are included). It's for prevention of loading of known
incompatible plugins (fatal error protection). Any solution here would
have to be synced with the other patch. This is also the reason it was
left unfinished.
Looking a bit deeper: currently there are some problems with loading of
plugins with unmet requirements. For example a plugin that requires newer
version of WP or PHP cannot be installed from the UI (the plugins repo/API
doesn't allow it) but can still be installed from FTP or SSH. These
methods were somewhat popular few years ago, especially using version
control to deploy changes, so thinking WP should guard against errors
there too. Will open a new ticket for that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60457#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list