?cat=-1 Indexed Versions Of Homepage

if (isset($_GET['cat']) && $_GET['cat'] == -1) {
      header('Location: 404.php');
      exit;

Add this to your function.php file.

I also faced the same issue on my website. Every time I published a new article, the URL was not getting indexed in search engine and instead of URL, this unknown category shows up: (?cat=-1)