fix: #3607004 Skip IndexNow update pings for content that was never public

Closes #3607004

The visibility check runs in hook_entity_update() and not when the ping is sent at TERMINATE. Core clears getOriginal() in doPostSave(), so at TERMINATE "visible before" is always FALSE and unpublishing no longer pings. The access handler cache is reset before each check, because it is keyed by revision.

With the snippet from the issue, 2 of the 7 kernel tests fail:

Kernel tests before and after

Merge request reports

Loading
Loading