Skip to content

Commit

Permalink
release: small fixes
Browse files Browse the repository at this point in the history
- Fixed an issue where offload logs failed to load in some cases.
- Adjusted the conditions for displaying early upgrade notices to prevent premature notifications.
  • Loading branch information
selul authored Apr 18, 2024
2 parents 79ffc43 + 2459733 commit 2582d9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public function should_show_upgrade() {
if ( $visitors_limit === 0 ) {
return false;
}
if ( $visitors_left > 2000 ) {
if ( $visitors_left > 300 ) {
return false;
}

Expand Down
1 change: 1 addition & 0 deletions inc/logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ private function tailCustom( $filepath, $lines = 1, $adaptive = true, $separator
$pos = strrpos( $output, $separator );
if ( $pos !== false ) {
$output = substr( $output, $pos + strlen( $separator ) );
$pos = -1; // we reset the position to start from the beginning of the chunk when slicing.
}
}

Expand Down

0 comments on commit 2582d9b

Please sign in to comment.