CacheExclude
This module allows administrators to exclude specific pages from being cached, ensuring that content that changes dynamically remains fresh for visitors. It only affects the page-level cache and does not impact other caching mechanisms.
This module provides a simple way to exclude certain pages from being cached. Sometimes you want all pages to be cached for anonymous users except for one or two pages that have dynamic or random or rotating content. If those pages are cached, the dynamic parts cease to be dynamic.
This module allows an administrator to selectively exclude certain paths from being cached so that dynamic content is actually dynamic.
Limitations
Cache Exclude only applies to the page-level cache in Drupal 9+. Internal object cache, block cache, and render cache are not affected by this module.
Testing
Testing runs on Drupal GitLab and includes live previews with Tugboat for the 2.0.x branch.