WordPress.org

Make WordPress Core

Changeset 38117


Ignore:
Timestamp:
07/20/2016 03:06:19 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Comments: Introduce the cache_domain argument for WP_Comment_Query to allow caching to a unique set of cache buckets.

See [18128] for get_terms() and [37572] for WP_Term_Query.

Props Chouby, rachelbaker.
Fixes #37419.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-comment-query.php

    r38001 r38117  
    152152     *              `$hierarchical`, and `$update_comment_post_cache` were added.
    153153     * @since 4.5.0 Introduced the `$author_url` argument.
     154     * @since 4.6.0 Introduced the `$cache_domain` argument.
    154155     * @access public
    155156     *
     
    251252     *                                                   `$fields` is 'ids' or 'counts'. Accepts 'threaded',
    252253     *                                                   'flat', or false. Default: false.
     254     *     @type string       $cache_domain              Unique cache key to be produced when this query is stored in
     255     *                                                   an object cache. Default is 'core'.
    253256     *     @type bool         $update_comment_meta_cache Whether to prime the metadata cache for found comments.
    254257     *                                                   Default true.
     
    300303            'date_query' => null, // See WP_Date_Query
    301304            'hierarchical' => false,
     305            'cache_domain' => 'core',
    302306            'update_comment_meta_cache' => true,
    303307            'update_comment_post_cache' => false,
Note: See TracChangeset for help on using the changeset viewer.