New answers tagged caching
3
votes
Accepted
How can I add cache information to InboundPathProcessor?
In a path processor you can't set data in the request object, the request object is not preserved. The only exception are query parameters which are extracted from the request object when the ...
1
vote
Accepted
How to properly set up caching in a preprocess function for a block variation by node type?
The caching related code already present is for bubbling up the cache dependencies of the block content entity, as a precaution in case the template doesn't render the entire {{ content }} variable.
...
0
votes
How do I enable the ETag header?
Create a new module (etag)
Add etag.services.yml
services:
etag.response_subscriber:
class: Drupal\etag\EventSubscriber\ResponseSubscriber
tags:
- { name: ...
Top 50 recent answers are included
Related Tags
caching × 14368 × 386
7 × 338
views × 120
theming × 111
blocks × 108
performance × 92
6 × 80
proxies × 65
database × 58
nodes × 44
entities × 40
users × 36
forms × 34
9 × 33
cron × 31
javascript × 29
hooks × 29
routes × 29
drush × 26
media × 25
ajax × 21
navigation × 18
commerce × 17
configuration × 15