Title: exclude cache group
Last modified: June 26, 2024

---

# exclude cache group

 *  Resolved [wpshushu](https://wordpress.org/support/users/wpshushu/)
 * (@wpshushu)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-cache-group/)
 * 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](https://wordpress.org/support/users/olliejones/)
 * (@olliejones)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-cache-group/#post-17852734)
 * Thanks for the question. The WP_Object_Cache API supports the use of
 * [wp_cache_add_non_persisted_group( ‘groupname’ );](https://developer.wordpress.org/reference/functions/wp_cache_add_non_persistent_groups/)
 * as the approved way to suppress the caching of a particular cache group. Call
   this from init on every page view.
 *  Thread Starter [wpshushu](https://wordpress.org/support/users/wpshushu/)
 * (@wpshushu)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-cache-group/#post-17852895)
 * 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](https://wordpress.org/support/users/since/) 2.6.0
 *  *
 *  * [@param](https://wordpress.org/support/users/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)

The topic ‘exclude cache group’ is closed to new replies.

 * ![](https://ps.w.org/sqlite-object-cache/assets/icon-128x128.jpg?rev=2829632)
 * [SQLite Object Cache](https://wordpress.org/plugins/sqlite-object-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sqlite-object-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sqlite-object-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/sqlite-object-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sqlite-object-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sqlite-object-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wpshushu](https://wordpress.org/support/users/wpshushu/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-cache-group/#post-17852895)
 * Status: resolved