• Resolved p15h

    (@prestonwordsworth)


    Currently, the object-cache.php doesn’t appear to work with the WP abstraction layer.

    None of the commands in WP CLI, for example, seems to be functioning. wp cache type returns ‘Unknown’ instead of ‘APC’ because the following class isn’t used:

    	// Test for APC object cache (https://www.ads-software.com/extend/plugins/apc/)
    } elseif ( class_exists( 'APC_Object_Cache' ) ) {
    $message = 'APC';

    wp_cache_supports() is missing and so all features test false. wp cache flush also doesn’t flush any APCu cache.

    Implementing the functions underlying WP CLI commands can be important because some plugins rely on these functions to purge object cache, and such code as wp_cache_flush() will fail if a user happens to be using APCu.

    Would it be possible for this aspect of the plugin to be improved?

Viewing 1 replies (of 1 total)
  • Thread Starter p15h

    (@prestonwordsworth)

    We’ve identified Rank Math the culprit that prevents wp_cache_flush() from taking effect, though the precise reason is unclear to them.

    l3rady helpfully pointed out to us that WP CLI doesn’t share php-fpm’s object cache and so can’t manipulate functions defined in object-cache.php.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.