Title: Code Snippets + Object Pro Cache
Last modified: July 11, 2025

---

# Code Snippets + Object Pro Cache

 *  Resolved [eskimopies](https://wordpress.org/support/users/eskimopies/)
 * (@eskimopies)
 * [11 months ago](https://wordpress.org/support/topic/code-snippets-object-pro-cache/)
 * We’re using the **Code Snippets** plugin alongside **Object Cache Pro** for object
   caching. We’re seeing the following recurring warning in our logs:
 * **objectcache.notice: The cache key `all_snippets_pnc_snippets` is incompatible
   with prefetching and the group `code_snippets` should be added to the list of
   non-prefetchable groups.**
 * To try fix this, we’ve already tried configuring the non_prefetchable_groups 
   option in wp-config.php as follows:
 * [https://objectcache.pro/docs/configuration-options/#non-prefetchable-groups](https://objectcache.pro/docs/configuration-options/#non-prefetchable-groups)
 * **define(‘WP_REDIS_CONFIG’, [    ‘non_prefetchable_groups’ => [        ‘code_snippets’,‘
   wc_session_id’,        ‘\*-queries’,    ],]);**
 * Despite this configuration, the warnings continue to appear in the logs.
 * Could you please advise if there’s a specific caching group or key the Code Snippets
   plugin uses that we might be missing? Or if there’s any adjustment that can be
   made to the plugin itself to improve compatibility with object caching and prefetching
   in Object Cache Pro, would greatly appreciate it.

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/code-snippets-object-pro-cache/#post-18575346)
 * Hi [@eskimopies](https://wordpress.org/support/users/eskimopies/),
 * We also use the `code_snippets_settings` key for storing setting data, but I 
   doubt that’d cause the same issue. It sounds like setting the non_prefetchable_groups
   option might not be working correctly. It’s a shame that Object Cache Pro is 
   a premium plugin, or I’d do some testing – I might see what I can do to take 
   a look at it anyway.
 *  Plugin Author [Carolina](https://wordpress.org/support/users/carolinaop/)
 * (@carolinaop)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/code-snippets-object-pro-cache/#post-18666963)
 * Hi @eskimopies ,
 * Since we haven’t received any further feedback, I’ll go ahead and close this 
   ticket for now. Please don’t hesitate to reopen it anytime if needed—we’ll be
   happy to help.
 * Best regards,
 * Carolina

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

The topic ‘Code Snippets + Object Pro Cache’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Carolina](https://wordpress.org/support/users/carolinaop/)
 * Last activity: [8 months, 1 week ago](https://wordpress.org/support/topic/code-snippets-object-pro-cache/#post-18666963)
 * Status: resolved