wp_cache_set_last_changed example


function wp_cache_get_last_changed( $group ) {
    $last_changed = wp_cache_get( 'last_changed', $group );

    if ( $last_changed ) {
        return $last_changed;
    }

    return wp_cache_set_last_changed( $group );
}

/** * Sets last changed date for the specified cache group to now. * * @since 6.3.0 * * @param string $group Where the cache contents are grouped. * @return string UNIX timestamp when the group was last changed. */
function wp_cache_set_last_changed( $group ) {
    
'messages'       => $messages,
        'done'           => $done,
    );
}

/** * Sets the last changed time for the 'comment' cache group. * * @since 5.0.0 */
function wp_cache_set_comments_last_changed() {
    wp_cache_set_last_changed( 'comment' );
}

/** * Updates the comment type for a batch of comments. * * @since 5.5.0 * * @global wpdb $wpdb WordPress database abstraction object. */
function _wp_batch_update_comment_type() {
    global $wpdb;

    

        )
    );
}

/** * Sets the last changed time for the 'users' cache group. * * @since 6.3.0 */
function wp_cache_set_users_last_changed() {
    wp_cache_set_last_changed( 'users' );
}

/** * Checks if password reset is allowed for a specific user. * * @since 6.3.0 * * @param int|WP_User $user The user to check. * @return bool|WP_Error True if allowed, false or WP_Error otherwise. */
function wp_is_password_reset_allowed_for_user( $user ) {
    


    update_blog_option( $site_id, 'blog_public', $is_public );
}

/** * Sets the last changed time for the 'sites' cache group. * * @since 5.1.0 */
function wp_cache_set_sites_last_changed() {
    wp_cache_set_last_changed( 'sites' );
}

/** * Aborts calls to site meta if it is not supported. * * @since 5.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param mixed $check Skip-value for whether to proceed site meta function execution. * @return mixed Original value of $check, or false if site meta is not supported. */
$wpdb->update( $wpdb->posts, array( 'post_name' => $post_name ), array( 'ID' => $post->ID ) );
    clean_post_cache( $post->ID );
    return $post_name;
}

/** * Sets the last changed time for the 'posts' cache group. * * @since 5.0.0 */
function wp_cache_set_posts_last_changed() {
    wp_cache_set_last_changed( 'posts' );
}

/** * Gets all available post MIME types for a given post type. * * @since 2.5.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param string $type * @return string[] An array of MIME types. */


    return is_taxonomy_viewable( $term->taxonomy );
}

/** * Sets the last changed time for the 'terms' cache group. * * @since 5.0.0 */
function wp_cache_set_terms_last_changed() {
    wp_cache_set_last_changed( 'terms' );
}

/** * Aborts calls to term meta if it is not supported. * * @since 5.0.0 * * @param mixed $check Skip-value for whether to proceed term meta function execution. * @return mixed Original value of $check, or false if term meta is not supported. */
function wp_check_term_meta_support_prefilter( $check ) {
    
foreach ( $network_ids as $id ) {
        /** * Fires immediately after a network has been removed from the object cache. * * @since 4.6.0 * * @param int $id Network ID. */
        do_action( 'clean_network_cache', $id );
    }

    wp_cache_set_last_changed( 'networks' );
}

/** * Updates the network cache of given networks. * * Will add the networks in $networks to the cache. If network ID already exists * in the network cache then it will not be updated. The network is added to the * cache using the network group with the key using the ID of the networks. * * @since 4.6.0 * * @param array $networks Array of network row objects. */
Home | Imprint | This part of the site doesn't use cookies.