Drupal APIs
- Access Policy API
- AJAX API
- Authentication API
- Batch API
- Block API
- Cache API
- (deprecated) CKEditor 4 API
- CKEditor 5 API
- Configuration API
- Database API
- Entity API
- Filter API
- Form API
- JavaScript API
- Layout API
- Logging API
- Menu API
- Middleware API
- Migrate API
- Plugin API
- RESTful Web Services API
- Render API
- Responses
- Routing system
- Runtime Assertions
- Serialization API
- Services and dependency injection
- State API
- Text Editor API
- Tour API
- Translation API
- Typed Data API
- Update API
- Command-Line Interface (CLI) API
- HTMX
- Icon API
- Token API
Cache API
Documentation for Cache API in Drupal 8.
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