Score:0

How is the cache invalidated?

th flag
fin

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?

4uk4 avatar
cn flag
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.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.