Problem/Motivation
This comment in services.yml is rather confusing and could use better wording.
It can read like it's not recommended to set the `cache: true` value. But instead, what it's trying to say is that it is not recommended to disable cache on a production environment.
Steps to reproduce
Visit the services.yml provided by Drupal core
https://git.drupalcode.org/project/drupal/-/blob/8.9.x/sites/default/def...
Proposed resolution
Better wording so it's not confusing when reading the comment.
Remaining tasks
Update comments.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | interdiff_12-13.txt | 1.26 KB | ravi.shankar |
| #13 | 3166449-13.patch | 3.21 KB | ravi.shankar |
| #12 | 3166449-12.patch | 3.21 KB | ravi.shankar |
| #7 | interdiff_6-7.txt | 1.13 KB | mmatsoo |
| #7 | correct-period-position-in-improved-wording-31664499-7.patch | 3.2 KB | mmatsoo |
Comments
Comment #2
cilefen commentedComment #3
walangitan commentedTook a pass at updating the comments to include enabling/disabling the values. I was looking to see if there is already a pattern for more detailed comments about setting values and am curious what the community thinks is best to help clarify these. I do agree that the current comment:
is not as clear as it should be.
Post Tests Edit: This is failing from this test, so there is additional work to remedy once there's a decision to the wording.
Comment #5
ayushmishra206 commentedComment #6
adamzimmermann commentedI like the new wording. While we are at it, can we add a "." to the end of the sentences?
I attached a new patch that handles this and should fix the failing test as well.
Comment #7
mmatsoo commented@adamzimmermann I noticed a couple of typos while reviewing your patch. ("environme.nts") Attached is a re-rolled patch.
Comment #8
adamzimmermann commented@mmatsoo thank you!
Comment #11
star-szrDocumentation might be a better component than cache system but going to leave it for now. I don't think this needs tests.
Otherwise, looking pretty good, I would suggest replacing "cacheability metadata" with "cacheability debugging", I think it would be more accurate, and also consistent with the "header" of
# Cacheability debugging:above that setting.Comment #12
ravi.shankar commentedAdded reroll of patch #7 on Drupal 9.3.x.
Comment #13
ravi.shankar commentedMade change as per comment #11.
Comment #14
star-szrLooks good to me, thanks @ravi.shankar (and of course everyone else who has worked on this so far)!
Comment #18
catchCommitted 1f171b9 and pushed to 10.0.x. Thanks!
Also cherry-picked to 9.4.x and 9.3.x.