Skip to content

Commit

Permalink
does wp_cache_delete_group work?
Browse files Browse the repository at this point in the history
  • Loading branch information
John Spellman committed May 5, 2023
1 parent 9ab8c0d commit c236b34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/phpunit/test-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,12 @@ public function test_wp_cache_flush_group() {
$val = rand_str();

wp_cache_set( $key, $val, 'test_wp_cache_flush_group' );
// Verify that the data is in the cache
$this->assertEquals( $val, wp_cache_get( $key, 'test_wp_cache_flush_group' ) );

// Flush the cache
wp_cache_flush_group( 'test_wp_cache_flush_group' );
wp_cache_delete_group( 'test_wp_cache_flush_group' );

// Verify that the data is not in the cache
// Verify that the cache is now empty
$this->assertFalse( wp_cache_get( $key, 'test_wp_cache_flush_group' ) );
}

Expand Down

0 comments on commit c236b34

Please sign in to comment.