[wp-trac] [WordPress Trac] #22661: Allow object caches to degrade gracefully
WordPress Trac
noreply at wordpress.org
Tue Mar 25 18:30:04 UTC 2014
#22661: Allow object caches to degrade gracefully
--------------------------+-----------------------
Reporter: markjaquith | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.9
Component: Cache API | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------
Comment (by nacin):
Well, there is some additional code here:
{{{
} else if ( ! wp_using_ext_object_cache() && file_exists(
WP_CONTENT_DIR . '/object-cache.php' ) ) {
// Sometimes advanced-cache.php can load object-cache.php
before it is loaded here.
// This breaks the function_exists check above and can
result in $_wp_using_ext_object_cache
// being set incorrectly. Double check if an external
cache exists.
wp_using_ext_object_cache( true );
}
}}}
So this wouldn't work in the case of Batcache loading object-cache.php
earlier.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22661#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list