- First commit to issue fork.
- Merge request !11548Issue #2554641: Switch trivial page cache policy handlers to use no_cache option instead → (Open) created by acbramley
The node module implements src/PageCache/DenyNodePreview.php
to prevent node previews from being cached, but this can be done much simpler and with less code.
When @Fabianx and @catch reviewed a custom-entity type I implemented based on the node module, they noted there were simpler ways to prevent the entity from being cached during previews. One being the proposed resolution here, the other being setting max_age = 0 on the controller. The goal of this patch is to perform the same simplification cleanup here, too.
Remove src/PageCache/DenyNodePreview.php
, the reference in node.services.yml
, and just add a no_cache: TRUE
in node.routing.yml
.
With these changes in place, make sure node previews aren't cached.
N/A
N/A
Needs work
11.0 🔥
node system
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.