mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-15 18:14:26 +00:00
05e88c58cd22b29093386f6f250c77446db80586
Rework logic for how external object caches are detected, so that if an external cache does not define a `wp_cache_init()`, the built-in object cache will be used. Object caches can now wrap their entire contents in logic checks. So a Redis caching backend could make sure that the `Redis` PHP class is available before defining all the caching functions. And if Redis is not available, the site doesn't break or throw errors or think it is using caching when it isn't. This is particularly useful for doing local development, where you might want to develop on a site without running Memcache or Redis like you are in production. * Accounts for multisite, which may re-initialize the object cache multiple times. * Accounts for object caches that may include `object-cache.php` during `advanced-cache.php` (before WP loads it). Props jtsternberg, markjaquith. Fixes #22661. git-svn-id: https://develop.svn.wordpress.org/trunk@42723 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%