Make WordPress Core

Ticket #14047: 14047.patch

File 14047.patch, 774 bytes (added by hakre, 15 years ago)
  • wp-includes/cache.php

     
    167167}
    168168
    169169/**
     170 * is wp_cache available?
     171 *
     172 * This function informs about wether or not the
     173 * cache is available.
     174 *
     175 * @return bool Cache Availablity.
     176 */
     177function wp_cache_available() {
     178        global $wp_object_cache;
     179        return !empty( $wp_object_cache ) && is_object( $wp_object_cache );
     180}
     181
     182/**
    170183 * Reset internal cache keys and structures.  If the cache backend uses global blog or site IDs as part of its cache keys,
    171184 * this function instructs the backend to reset those keys and perform any cleanup since blog or site IDs have changed since cache init.
    172185 *