• Resolved eskimopies

    (@eskimopies)


    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

    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

    (@bungeshea)

    Hi @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 Contributor Carolina

    (@carolinaop)

    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)

You must be logged in to reply to this topic.