The `reset_invalid_node_bakes` function resets caches on or before the first frame of the bake frame range. This works fine for full-frame steps, but with stretched-out frames the `SubFrame` comparator is true for every substep when the integer frames match. This keeps resetting the cache at the beginning of the bake range for all subframes. The comparison function must take the subframe into account when the integer part is equal. Pull Request: https://projects.blender.org/blender/blender/pulls/141220