i'm now sat here panicking because after we left the lesson we saw the IT guy walking towards the class we came from.
can they see what websites my friend visited? i cleared the browsing history but i don't know if that's enough.
i'm scared for tomorrow because i don't want to be in trouble and i also don't want to dob my friend in.
The IT specialists are most likely able to check the browsing history despite the fact that you cleared the cache.
If the laptop is school property, then there is probably a backdoor that could allow the IT people to check everything that is typed into the notebook, not just the browsing history. It all depends on the security level of your school.
If the laptop is yours but you only log on the school account, then clearing the cache would normally be enough unless you have committed a serious crime and the notebook would have to be confiscated and a forensic analysis of the entire hard disk done.