Skip to content

Commit bb3b9f6

Browse files
authored
Better support non-WordPress use-cases (#60)
This better allows for environments where WordPress functions are not fully loaded.
1 parent 9e72b41 commit bb3b9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object-cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ function flush() {
477477

478478
$this->rotate_site_keys( $flush_number );
479479

480-
if ( is_main_site() ) {
480+
if ( function_exists( 'is_main_site' ) && is_main_site() ) {
481481
$this->rotate_global_keys( $flush_number );
482482
}
483483

0 commit comments

Comments
 (0)