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_snippetsis incompatible with prefetching and the groupcode_snippetsshould 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.
You must be logged in to reply to this topic.