WordPress/wp-includes
ryan 295ca4d76f Introduce wp_cache_switch_to_blog() and WP_Object_Cache::switch_to_blog() as a lighter/faster way to switch the cache to a new blog id.
Add the blog id to the cache keys for multisite installs.

Use wp_cache_switch_to_blog() instead of wp_cache_init() in switch_to_blog().

Use wp_cache_switch_to_blog() instead of wp_cache_reset() in wp_start_object_cache().

Deprecate wp_cache_reset().

This avoids the many queries needed to re-prime the cache after switch_to_blog() on multisite installs using the default cache backend.

fixes #21434



git-svn-id: http://core.svn.wordpress.org/trunk@21403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-02 18:31:14 +00:00
..
css Compress scripts/styles: 3.5-alpha-21338. 2012-07-25 18:58:20 +00:00
images Retina: fix the icon positions in the original editor buttons sprite, reset the css tweaks and adjust the positions in the 2x sprite, see #21019 2012-07-20 23:07:48 +00:00
js Compress scripts/styles: 3.5-alpha-21382. 2012-08-01 02:58:20 +00:00
pomo
Text
theme-compat Introduce get_edit_user_link(). Props scribu, georgestephanis, johnbillion. fixes #14787 see #20307 2012-07-30 18:30:03 +00:00
admin-bar.php Admin bar: Avoid clash with a parent node and a 'content' post type. see #21117. 2012-07-10 20:46:22 +00:00
atomlib.php
author-template.php
bookmark-template.php Bunch of PHPDoc corrections and cleanups. props c3mdigital. props SergeyBiryukov. fixes #21149 2012-07-09 05:03:53 +00:00
bookmark.php
cache.php Introduce wp_cache_switch_to_blog() and WP_Object_Cache::switch_to_blog() as a lighter/faster way to switch the cache to a new blog id. 2012-08-02 18:31:14 +00:00
canonical.php Also switch back the @uses annotation for [21215]. props duck_. see #20484. see #16639 2012-07-05 20:09:28 +00:00
capabilities.php Use get_userdata() rather than new WP_User in is_super_admin(), to take advantage of the performance improvements in [21376]. see #21120. 2012-07-31 17:47:08 +00:00
category-template.php
category.php
class-feed.php
class-http.php Fix typo in HTTP docblock. props ocean90. fixes #21215. 2012-07-20 15:09:11 +00:00
class-IXR.php
class-json.php
class-oembed.php ALIGN *ALL* THE THINGS! see #20324 2012-05-24 07:14:10 +00:00
class-phpass.php
class-phpmailer.php Do not pass mail() a fourth argument when safe_mode is in effect. 2012-06-26 03:54:17 +00:00
class-pop3.php
class-simplepie.php
class-smtp.php
class-snoopy.php
class-wp-admin-bar.php Admin bar: When calling add_node() for an existing node, all properties should be merged into the existing arguments, including individual meta arguments. Corrects a logic inversion. fixes #21117. 2012-07-10 21:26:35 +00:00
class-wp-ajax-response.php
class-wp-atom-server.php
class-wp-customize-control.php Fix @since blocks... since we already released 3.4.1. see #21355. 2012-08-01 07:20:44 +00:00
class-wp-customize-manager.php phpdoc for Customizer classes and methods. Props bananastalktome. see #21303 2012-07-26 21:45:33 +00:00
class-wp-customize-section.php phpdoc for Customizer classes and methods. Props bananastalktome. see #21303 2012-07-26 21:45:33 +00:00
class-wp-customize-setting.php phpdoc for Customizer classes and methods. Props bananastalktome. see #21303 2012-07-26 21:45:33 +00:00
class-wp-editor.php Put the spinner back to the right of the search field in internal linking, fixes #21351 2012-07-25 04:41:18 +00:00
class-wp-error.php
class-wp-http-ixr-client.php
class-wp-theme.php Revert detection of page templates to 3.3 functionality. 2012-06-25 21:07:07 +00:00
class-wp-walker.php
class-wp-xmlrpc-server.php Don't use switch_to_blog() in wp.getUsersBlogs to improve performance and memory footprint. props mohanjith for initial patch. fixes #20665. 2012-06-30 11:49:02 +00:00
class-wp.php Allow home page of multisite (subdir install) sites to resolve regardless of capitalization, as they already do for URLs other than the home page. props SergeyBiryukov. fixes #16200 2012-07-05 13:50:24 +00:00
class.wp-dependencies.php
class.wp-scripts.php Allow protocol-relative URLs when registering/enqueueing scripts and styles. 2012-06-28 20:18:38 +00:00
class.wp-styles.php Allow protocol-relative URLs when registering/enqueueing scripts and styles. 2012-06-28 20:18:38 +00:00
comment-template.php Introduce get_edit_user_link(). Props scribu, georgestephanis, johnbillion. fixes #14787 see #20307 2012-07-30 18:30:03 +00:00
comment.php Remove old code unsetting a few variables in wp-settings.php. fixes #21115. 2012-06-29 20:57:09 +00:00
compat.php
cron.php Introduce cron_request filter. Props ikailo. fixes #13449 2012-07-20 15:15:22 +00:00
default-constants.php s/inval/intval/. props PeteMall. see #14889. 2012-06-28 20:24:50 +00:00
default-filters.php Escape editable_slug as a textarea. 2012-06-10 17:58:57 +00:00
default-widgets.php
deprecated.php Deprecate sticky_class() in favor of post_class(). props solarissmoke, fixes #16675. 2012-07-09 21:10:59 +00:00
feed-atom-comments.php Use get_search_query() in feed-rss2-comments.php. Props SergeyBiryukov. fixes #21365 2012-07-25 18:04:17 +00:00
feed-atom.php Use html_type for alternate link elements in atom feeds, as done in atom comment feeds. props niallkennedy. fixes #21305. 2012-07-20 15:08:45 +00:00
feed-rdf.php
feed-rss2-comments.php Use get_search_query() in feed-rss2-comments.php. Props SergeyBiryukov. fixes #21365 2012-07-25 18:04:17 +00:00
feed-rss2.php Use the_content_feed() when looking for zero-length post content for RSS2 feeds. Now you can have blank posts with content generated by the_content filters. props SergeyBiryukov. fixes #15604 2012-07-09 03:33:01 +00:00
feed-rss.php
feed.php Supply the missing @return doc for get_the_content_feed(). props c3mdigital. fixes #21148 2012-07-09 04:51:00 +00:00
formatting.php Only run stripslashes() in stripslashes_deep() for strings, not other scalar values. props Kawauso, knutsp. props coffee2code for [UT698]. fixes #18026. 2012-07-20 15:14:26 +00:00
functions.php Call func_get_args() once in add_query_arg(). Props SergeyBiryukov. see #21332 2012-07-31 15:28:10 +00:00
functions.wp-scripts.php
functions.wp-styles.php
general-template.php TinyMCE: better exclusion of Opera mobile, fixes #21416 2012-07-30 19:40:52 +00:00
http.php
kses.php Don't allow unfiltered HTML comments from a frame. Props nacin. fixes #20812 2012-06-01 20:47:08 +00:00
l10n.php Load the admin MO file on repair.php. props SergeyBiryukov. see #21039 for trunk. 2012-06-25 20:00:31 +00:00
link-template.php Introduce get_edit_user_link(). Props scribu, georgestephanis, johnbillion. fixes #14787 see #20307 2012-07-30 18:30:03 +00:00
load.php Introduce wp_cache_switch_to_blog() and WP_Object_Cache::switch_to_blog() as a lighter/faster way to switch the cache to a new blog id. 2012-08-02 18:31:14 +00:00
locale.php
media.php Introduce wp_oembed_remove_provider(). Props r-a-y. fixes #16327 2012-07-26 20:18:27 +00:00
meta.php Add NOT EXISTS to meta queries, allowing you to query for the non-existence of a meta key. 2012-06-29 19:59:29 +00:00
ms-blogs.php Introduce wp_cache_switch_to_blog() and WP_Object_Cache::switch_to_blog() as a lighter/faster way to switch the cache to a new blog id. 2012-08-02 18:31:14 +00:00
ms-default-constants.php
ms-default-filters.php Multisite: Make it easy to replace or augment the over-quota message displayed when you try and upload new media and you have reached your quota. 2012-07-10 13:33:44 +00:00
ms-deprecated.php
ms-files.php
ms-functions.php Multisite: Rework the upload space usage tracking code so as to be fully pluggable. 2012-08-01 13:52:06 +00:00
ms-load.php
ms-settings.php
nav-menu-template.php Remove unused global reference. props ampt. fixes #20863. 2012-07-09 19:48:04 +00:00
nav-menu.php
option.php
pluggable-deprecated.php
pluggable.php Optimize get_user_by( 'id', $id ) to return wp_get_current_user() when the current user ID is requested. 2012-07-31 17:45:38 +00:00
plugin.php Revert [21287] until #21169 goes through. see #21321. 2012-07-21 20:24:21 +00:00
post-template.php Fix some spelling errors. Props thee17. fixes #21191 2012-07-25 18:06:13 +00:00
post-thumbnail-template.php
post.php Remove unused arguments (hierarchical, _edit_link, capability_type) from register_post_status 2012-07-22 08:45:35 +00:00
query.php Use is_main_query() method, rather than the function. Only decode the search query variable if we are executing the main query and it came from the /search/ base, rather than the query string. fixes #13961. 2012-07-09 17:28:55 +00:00
registration-functions.php
registration.php
rewrite.php Set $walk_dirs = true for post rewrite rule generation. See #21020 for trunk. 2012-06-25 20:41:14 +00:00
rss-functions.php
rss.php
script-loader.php If a plugin triggers the WP_Scripts constructor prior to init, fire wp_default_scripts() 2012-06-26 05:33:19 +00:00
shortcodes.php
taxonomy.php Consolodate some strings. Props pavelevap. fixes #20809 2012-06-01 19:05:30 +00:00
template-loader.php
template.php
theme.php Allow switch_theme() to take a single $stylesheet argument. 2012-06-26 05:21:04 +00:00
update.php Fix string offset PHP 5.4 error by normalizing $user_count to always be an integer. props ericmann. see #20966 for trunk. 2012-06-25 19:40:16 +00:00
user.php Better phpdoc for user_nicename. Props SergeyBiryukov. fixes #21427 2012-07-31 15:50:29 +00:00
vars.php TinyMCE: better exclusion of Opera mobile, fixes #21416 2012-07-30 19:40:52 +00:00
version.php Compress scripts/styles: 3.5-alpha-21400. 2012-08-01 22:58:25 +00:00
widgets.php
wlwmanifest.xml
wp-db.php Correctly identify queries where a line break follows a keyword, rather than a space. props GeertDD, fixes #19467. 2012-06-29 15:08:17 +00:00
wp-diff.php