Make WordPress Core


Ignore:
Timestamp:
09/06/2013 06:09:24 PM (12 years ago)
Author:
wonderboymusic
Message:

Introduce wp_using_ext_object_cache() - mimic wp_suspend_cache_invalidation() and discourage direct access to $_wp_using_ext_object_cache, cleaning up importing of globals in functions and provides function to modify that global. Loads the packaged object cache when an external cache hasn't been loaded or doesn't contain wp_cache_init().

Fixes #21401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-cron.php

    r25001 r25289  
    2929// Uncached doing_cron transient fetch
    3030function _get_cron_lock() {
    31     global $_wp_using_ext_object_cache, $wpdb;
     31    global $wpdb;
    3232
    3333    $value = 0;
    34     if ( $_wp_using_ext_object_cache ) {
     34    if ( wp_using_ext_object_cache() ) {
    3535        // Skip local cache and force refetch of doing_cron transient in case
    3636        // another processs updated the cache
Note: See TracChangeset for help on using the changeset viewer.