Make WordPress Core


Ignore:
Timestamp:
09/09/2011 07:59:44 PM (14 years ago)
Author:
ryan
Message:

Improve cron locking. Avoid multiple cron processes looping over the same events. fixes #17462

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r18653 r18659  
    103103 * @param int|string $key What the contents in the cache are called
    104104 * @param string $group Where the cache contents are grouped
     105 * @param bool $force Whether to force an update of the local cache from the persistent cache (default is false)
    105106 * @return bool|mixed False on failure to retrieve contents or the cache
    106107 *      contents on success
    107108 */
    108 function wp_cache_get($key, $group = '') {
    109     global $wp_object_cache;
    110 
    111     return $wp_object_cache->get($key, $group);
     109function wp_cache_get( $key, $group = '', $force = false ) {
     110    global $wp_object_cache;
     111
     112    return $wp_object_cache->get( $key, $group, $force );
    112113}
    113114
     
    404405     * @param int|string $key What the contents in the cache are called
    405406     * @param string $group Where the cache contents are grouped
     407     * @param string $force Whether to force a refetch rather than relying on the local cache (default is false)
    406408     * @return bool|mixed False on failure to retrieve contents or the cache
    407409     *      contents on success
    408410     */
    409     function get($key, $group = 'default') {
     411    function get( $key, $group = 'default', $force = false) {
    410412        if ( empty ($group) )
    411413            $group = 'default';
Note: See TracChangeset for help on using the changeset viewer.