• $test_key = “test_” . uniqid();

    wp_cache_delete( $test_key, “test” );

    $found = NULL;

    $val = wp_cache_get( $test_key, “test”, false, $found );

    var_dump($val);
    var_dump($found);

    The above test code placed into a template returns the following

    bool(false)
    bool(true)

    Since the item being deleted never existed in the first place and since wp_cache_delete should be removing the item, shouldn’t $found be FALSE, on the call to wp_cache_get ?

    This has caused significant issues with Advanced Custom Fields and seems like unexpected behaviour?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug in W3 Object Cache’ is closed to new replies.