Cache API
Explore Drupal's Cache API features in-depth
Cache tags
Cache tags = data dependencies
Cache contexts
Cache contexts provide a declarative way to create context-dependent variations of something that needs to be cached.
Cache max-age
Cache max-age = time dependencies
Cache tags + Varnish
Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. Varnish is used on thousands of Drupal sites to
CacheableDependencyInterface & friends
To make dealing with cacheability metadata (cache tags, cache contexts and max-age) easier, Drupal 8 has CacheableDependencyInterface.
CacheableResponseInterface
This interface lives at the intersection of the Cache API and Responses. Since it is first and foremost a response, that's where the
Access checkers + cacheability
Route access checkers, hook_entity_access() and anything that needs to return an AccessResultInterface object should add the appropriate