[wp-trac] [WordPress Trac] #30577: Allow plugins to bypass wp_options when saving transients
WordPress Trac
noreply at wordpress.org
Tue Dec 2 20:25:33 UTC 2014
#30577: Allow plugins to bypass wp_options when saving transients
--------------------------------+-----------------------------
Reporter: mgibbs189 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------------+-----------------------------
In `set_transient()`, the only way to prevent transients from using the
wp_options table is by using a custom object-cache.php drop-in.
This isn't consistent with `get_transient()`, which does have a filter to
short-circuit transient retrieval (pre_transient_*).
This patch allows plugins to bypass the options table when saving
transients.
'''Full disclosure:''' I'm writing a plugin to store transients in a
separate table, instead of cluttering wp_options. Reference:
https://github.com/mgibbs189/better-transients
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30577>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list