Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
max_age = 0 is the way to define that something is not cacheable at all, we should have a constant much like \Drupal\Core\Cache\CacheBackendInterface::CACHE_PERMANENT
Proposed resolution
Remaining tasks
Discuss which one to use
Comments
Comment #1
dawehnerGiven the existing permanent constant we could go with CacheBackendInterface::CACHE_NEVER
Comment #2
hass CreditAttribution: hass commentedAsked for the same in #2486213: Provide Cache::NEVER constant