Move invalidator code like \Drupal\cache_tools\Service\CacheSanitizer::invalidatePublishedEntity() to a new service, CacheTagInvalidator() which has utility methods that are called by the hooks. For backward compatibility just call the new service method in CacheSanitizer::invalidatePublishedEntity() and mark it deprecated.

Comments

aludescher created an issue. See original summary.

aludescher’s picture

StatusFileSize
new13.79 KB
aludescher’s picture

StatusFileSize
new22.44 KB

  • fago committed ae30f13 on 8.x-1.x authored by aludescher
    Issue #3049065 by aludescher: Move cache invalidator out of the...
fago’s picture

Good cleanup with BC, thanks! Committed.

fago’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.