Skip to content

Commit

Permalink
Better support non-WordPress use-cases (#60)
Browse files Browse the repository at this point in the history
This better allows for environments where WordPress functions are not fully loaded.
  • Loading branch information
dd32 authored Jun 20, 2024
1 parent 9e72b41 commit bb3b9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ function flush() {

$this->rotate_site_keys( $flush_number );

if ( is_main_site() ) {
if ( function_exists( 'is_main_site' ) && is_main_site() ) {
$this->rotate_global_keys( $flush_number );
}

Expand Down

0 comments on commit bb3b9f6

Please sign in to comment.