Leipziger-Ecken / drupal

Offizielle Drupal 8 Distribution der Leipziger Ecken
https://leipziger-ecken.de
MIT License
6 stars 1 forks source link

Caching of le_admin routes #28

Closed der-On closed 3 years ago

der-On commented 3 years ago

@FlxAlbroscheit I'm currently struggling with the aggressive caching in the le_admin routes for authenticated users. Drupal is caching node displays and breadcrumbs. Disabling cache using the route option no_cache: true and using #max-age => 0 in the controller code does not help as the node and breadcrumb level cache hits here.

I guess the solution is to add a cachable context to the breadcrumb and to somehow disable the caching of the nodes at least in the backend_teaser view modes.

FlxAlbroscheit commented 3 years ago

I never really dealt with drupal caching in custom modules :( Have you been able to solve the problem?

der-On commented 3 years ago

Currently I wasn't able to fix the caching issues. I will now try to adjust caching for the views used, however the breadcrumb caching requires a caching context.

der-On commented 3 years ago

fixed it in https://github.com/Leipziger-Ecken/drupal/commit/2ea840057b5fa1900acf703467f6db45ee8700d9