[wp-trac] [WordPress Trac] #31245: Replace alloptions with a key cache
WordPress Trac
noreply at wordpress.org
Mon Sep 7 21:00:30 UTC 2015
#31245: Replace alloptions with a key cache
-----------------------------------------------+---------------------------
Reporter: rmccue | Owner: rmccue
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future
Component: Options, Meta APIs | Release
Severity: normal | Version:
Keywords: has-patch needs-testing 4.4-early | Resolution:
| Focuses: performance
-----------------------------------------------+---------------------------
Comment (by tellyworth):
I've been looking into whether we can adapt this for WordPress.com, and I
have some concerns, mainly about the `wp_cache_set()` loop.
The `wp_cache_set()` loop would cause many set calls instead of one.
Depending on traffic patterns that could significantly increase the load
on the cache, especially on large multisite installs. Adding a
`wp_cache_set_multi()` function would fix that. Unfortunately the pecl
memcache extension only supports single gets
http://php.net/manual/en/memcache.set.php, so that's not a solution for us
or anyone else who relies on it. (The memcached extension appears to
support set multi, but internally it might just iterate over set, see
[http://php.net/manual/en/memcached.setmulti.php]).
I'm looking into whether we can simplify things a bit and make it
filterable, perhaps combined with some of the ideas in #23330
(specifically, making notoptions optional).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31245#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list