From 5d342aa54396aa2fcfc0abb270b7f60df6599ebc Mon Sep 17 00:00:00 2001 From: selul Date: Wed, 17 Apr 2024 22:27:41 +0300 Subject: [PATCH 1/2] fix lower limit condition when to show upgrade notice --- inc/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/admin.php b/inc/admin.php index e468f9e8..3234bdd1 100755 --- a/inc/admin.php +++ b/inc/admin.php @@ -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; } From 245973384f053dff5d835ebf10b6852f4b0aa3ad Mon Sep 17 00:00:00 2001 From: selul Date: Wed, 17 Apr 2024 22:58:06 +0300 Subject: [PATCH 2/2] fix logger reset on new output --- inc/logger.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/logger.php b/inc/logger.php index bc97f889..a020e64a 100644 --- a/inc/logger.php +++ b/inc/logger.php @@ -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. } }