• Hi, by using wp_cache_get() in a plugin we’re developing, we had to find out the hard way (by failing) that W3T does not implement wp_cache_get as the core WordPress does since 2011.

    In fact, wp_cache_get() is defined as wp_cache_get($key, $group, $force, $found). More details on that can be found at the following two pages:
    http://codex.ww.wp.xz.cn/Function_Reference/wp_cache_get https://core.trac.ww.wp.xz.cn/ticket/20004

    However, W3T’s object-cache.php implements wp_cache_get() as follows:

    /**
         * Get cache
         *
         * @param string $id
         * @param string $group
         * @return mixed
         */
        function wp_cache_get($id, $group = 'default') {
            global $wp_object_cache;
    
            return $wp_object_cache->get($id, $group);
        }

    Would it be possible to update your implementation of wp_cache_get() please, in order to support the $found parameter?

    https://ww.wp.xz.cn/plugins/w3-total-cache/

The topic ‘W3 Total Cache does not correctly implement wp_cache_get()’ is closed to new replies.