This module logs cache tag invalidations to help troubleshoot cache issues. You can enable or disable logging from the configuration page and view invalidations in the recent log messages, identified by the "log_cache_tags" channel.
Logging cache tags is helpful when you are troubleshooting problems with invalidations, origin hits, or just general cache tag insights. We found it helpful when we were trying to determine which cache tags were being invalidated at certain points. There's also a well-documented issue with the node:list cache tag invalidation with Drupal.
This module allows you to quickly log any cache tag invalidations (in the future, we'll log other cache tag functions) and gives you a toggle to turn the logging on and off so that you aren't filling the dblog with enormous amounts of cache tag data.
Simply enable to module and navigate to "/admin/config/log_cache_tags" and check the box for logging cache tag invalidations and start doing your regular work. Cache tag invalidations will show up with the "log_cache_tags" channel in the dblog "Recent log messages" list.