[wp-trac] [WordPress Trac] #50687: Consider Banning use of wp_options by Plugins
WordPress Trac
noreply at wordpress.org
Fri Jul 17 11:43:06 UTC 2020
#50687: Consider Banning use of wp_options by Plugins
-----------------------------+------------------------------
Reporter: thegulshankumar | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 5.4.2
Severity: normal | Resolution:
Keywords: | Focuses: performance
-----------------------------+------------------------------
Comment (by williampatton):
I don't think it is at all inappropriate to use the options table to store
options. It's what it is for. The `wp_` prefix is just a prefix - in no
way does it imply that it is reserved only for core use.
It's also already behind cache layers which custom tables are not and so
forcing plugins to have their own tables makes me feel like they would be
inherently less well performing - not better - and/or much more complex
code required to retrieve or save their data increasing the likelyhood of
security problems.
Everyone is welcome to discuss the possible merits and pitfalls of
_discoraging_ use of the options table but it should absolutely never be
on the table to consider any outright ban.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50687#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list