-
-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature request
When troubleshooting parts of a page that don't update correctly jr developers will often end up setting max-age on blocks or render arrays, see the problem is fixed and commit max-age 0. This is often really bad since max-age 0 or a low max-age makes any page with that render array uncacheable and can have catastrophic performance impacts on a site.
Since there are very few reasons to set max-age less then 10 it would be great if phpstan could warn about this similar to how it warns about \Drupal::serivice() so that jr developer being led down the path of making their sites uncacheable are warned about the implications.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request