This should be cleared when the file is updated, if possible the single file since we know what it is.  If that is significantly more difficult then when any file is saved.  A node bundle saving should not trigger clear.