diff --git a/admin/class-purger.php b/admin/class-purger.php index 42f1b27..7588edd 100644 --- a/admin/class-purger.php +++ b/admin/class-purger.php @@ -585,7 +585,7 @@ public function check_and_truncate_log_file() { if ( $file_size > $max_size_allowed ) { $offset = $file_size - $max_size_allowed; - $file_content = file_get_contents( $nginx_asset_path, null, null, $offset ); + $file_content = file_get_contents( $nginx_asset_path, false, null, $offset ); $file_content = empty( $file_content ) ? '' : strstr( $file_content, "\n" ); $fp = fopen( $nginx_asset_path, 'w+' );