Skip to content

Commit

Permalink
Added return value for flush methods. (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobd91 authored Mar 26, 2024
1 parent 69c0f0a commit a2be9ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cache_File_Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ function flush( $group = '' ) {

$c->clean();
}

return true;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions Extension_FragmentCache_WpObjectCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ function flush() {
$cache = $this->_get_cache( $descriptor['global'] );
$cache->flush( $group );
}

return true;
}

/**
Expand Down

0 comments on commit a2be9ac

Please sign in to comment.