A type of pizza is a string of $8$ digits where each neighboring pair is different, including the first and the last. We regard two strings as equivalent if one is a cyclic shift of the other.
To take care of having different first and last digits, we define two sequences. $A(n)$ is the number of $n$ digit strings with the first and last digits the same. $B(n)$ is the number of $n$ digit strings with the first and last digits different. Before considering the circular shifts we want $B(8)$.
The recurrence is $A(n)=B(n-1)$ because any string that doesn't have matching first and last digits can be extended in $1$ way to a string that does. $B(n)=9A(n-1)+8B(n-1)$ because we can extend a string with matching first and last in $9$ ways by choosing any other digit but if the first and last do not match and we need them still not to match we only have $8$ choices. Our starting cases are $A(1)=10,B(1)=0$. A quick spreadsheet gives $B(8)=43\ 046\ 730.$
Most pizzas can be rotated eight different ways, but there are $B(2)=90$ that alternate two toppings. They can only be rotated two ways, so there are $45$ pizzas that have only two different toppings. There are $B(4)=6570$ that have two runs of four toppings. We have already counted $90$ of these. The other $6570-90$ can be rotated four ways. The final count is then $\frac {90}2+\frac {6570-90}4+\frac {43\ 046\ 730-6570}8=5\ 381\ 685$ different pizzas