Minor optimization, now that the FootageViewer's nodes are connected/disconnected as part of the process, the second call to invalidate is unnecessary and will only serve to re-invalidate actually valid cache data.
if defined()
elif defined()