• Resolved wpshushu

    (@wpshushu)


    Hi,

    Is there a way to exclude specific cache groups from this plugin?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author OllieJones

    (@olliejones)

    Thanks for the question. The WP_Object_Cache API supports the use of

    wp_cache_add_non_persisted_group( ‘groupname’ );

    as the approved way to suppress the caching of a particular cache group. Call this from init on every page view.

    Thread Starter wpshushu

    (@wpshushu)

    I searched the WP code base and didn’t find this funciton, only

    /**

     * Adds a group or set of groups to the list of non-persistent groups.

     *

     * @since 2.6.0

     *

     * @param string|string[] $groups A group or an array of groups to add.

     */

    function wp_cache_add_non_persistent_groups( $groups ) {

      // Default cache doesn’t persist so nothing to do here.

    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.