Using the following code, are all the cache bins consider when invalidating a content piece?

$variable['#cache'] => [
  'keys' => ['key string here'],
  'tags' => ['tags string here'],
  'max-age' => 'max age'

For example, If max-age is set to 15 minutes, is the content invalidated every 15 minutes? Does any change to the cache tags invalidate the content?

  • 7
    There is no priority, this cache entry is stored with the given keys and becomes invalid when any of the tags is invalidated or max-age is reached.
    – 4k4
    Jul 30 at 6:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.