Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The function call is only a hint for persistent caching plugins. It’s up to the plugin to make use of it or not. The default WP cache is not persistent, so the call has no bearing on default installations.

    The default cache focuses on query results that are computationally expensive. As a guess, WP is suggesting to any potential caching plugins that these queries are not expensive?

    Thread Starter deltafactory

    (@deltafactory)

    FYI I understand how object caching works. I’m working on query/object cache optimizations for a site and I’m down to 3 queries per page load. This is causing at least 2 of the hold-outs. 🙂

    While it’s technically a “hint”, a caching plugin attempting to follow the intent of the call wouldn’t cache those groups. I suppose my question can be rephrased, “Why does core hint to leave these uncached?”

    There’s very little about this either in the code or online docs.

    I’m not sure of how expensive these queries are. I’m attempting to find out how close I can get to zero queries without page caching.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp_cache_add_non_persistent_groups()’ is closed to new replies.