Lewis, you have to convert the respective value of t
into a string first, e.g.:
PlotLegends -> "t=" <> ToString[t]
EDIT: Just as an aside - ClearSystemCache[]
does not clear old definitions, etc.. I guess you rather want
ClearAll["Global`*"]
or Clear[]
or Remove[]