Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Apr 2015 at 08:53 UTC
Updated:
17 Jun 2015 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhodgdonAlso in the page_cache.info.yml file, the name of the module should be:
Internal Page Cache
This needs to be fixed in the page_cache_help() function in page_cache.module too.
Also the "Uses" bullet point 'Configuring Internal page cache' should not have I but i on internal.
Comment #2
fmb commentedHere is a patch.
Comment #3
ifrikThanks,
FMB for working on this.
I've just added a page on drupal.org https://www.drupal.org/documentation/modules/internal_page_cache
The about section should link to that with the usual wording "For more information, see the online documentation for the Internal Page Cache module.
Some small change to the wording "and then reused;" maybe we can better say "and then are re-used".
We can also get rid of the brackets around one of the sentences, because it's relevant information.
In the second use the link title should be "Performance page" to be consistent with the page title.
The System help only refers to the aggregation of CSS and Java script files. Maybe that use could be rewritten to say that both the aggregation and the internal caching can be configured on the Performance page if the Interal Page Cache module is installed.
In any case the Performance page there needs to check whether the module is enabled, otherwise the site breaks. See #2473105: Update hook_help texts that link to modules that can be uninstalled for the syntax.
For the formatting: The text that currently is in
<p>tags, should just be in one or two<dd>tags, as appropriate.Comment #4
fmb commentedAs far as I understand, CSS and JS aggregation is still handled by the System module.
system_help() now refers to the Internal Page Cache module in the About section without a link, since this module actually has no UI of its own.
Comment #5
fmb commentedComment #6
ifrikComment #7
ifrikThanks and sorry,
now that I look at it my proposal to include a reference to Internal caching into the about section doesn't really make sense.
FBM, I've taken it out myself so you don't have to edit it again.
jhodgon: can you review it to check the changes in the yml and function are okay?
Comment #12
jhodgdonYML looks good.
A few things I think should be fixed in the hook_help:
a) For authenticated users, pages need to be assembled for each user individually, but anonymous users all get the exact same version of each page.
==> I don't think "exact same" is great... and this is a bit .. I don't know, I didn't think it read well. How about:
Because authenticated users have different roles and permissions, the same URL may result in different pages for different users, while all anonymous users have the same permissions, and pages should appear the same for everyone. Therefore, pages are not cached for authenticated users, only for anonymous users.
b) Configuring internal page cache [uses header]
Needs "the" ==> Configuring the internal page cache
c) On the Performance page, you can configure how long browsers and proxies may cache pages, that setting is also respected by the Internal Page Cache module.
This is a comma splice. You either need to put a conjunction like "and" after the comma, or make it a ; instead. I think a ; would be better here.
d) If the cache setting for browsers and proxies is on Performance due to the system module, then maybe we don't want to remove the help about it from the System module help? or maybe we need to mention this?
Comment #13
fmb commentedThere is a mention of it the About section of the System module since comment #4, are you OK with that?
I rephrased a), since in my opinion caching has more to do with sessions than roles and permissions.
Comment #14
fmb commentedComment #15
kiruba karan commentedThis particular line is not good to read. It could be something like this.
$output .= '
';
Comment #16
kiruba karan commentedComment #17
fmb commentedMmmh, looks like I did not take ifrik's modifications into account before working on the patch. I will do better by next week, hopefully with a better explanation about caching for anonymous users.
Comment #18
fmb commentedComment #19
ivarlaks commentedComment #20
ivarlaks commentedHere's the fresh screenshot > forgot to apply the patch when taking the first screenshot :)
Comment #21
ivarlaks commentedComment #22
jhodgdonThis looks pretty good!
However, the change in the System module is not quite OK. We have a standard that says all Uses headers should be -ing verbs, so changing it from "Managing the cache" to "Performance" is not right. Maybe it should be "Configuring performance" or something like that?
Also in that section
<a href="!bandwith-optimization">aggregate</a>This is not a good link text for accessibility. The link goes to the Performance page. The link text should be "Performance page". So the text needs rewriting -- it should say something like "On the Performance page, you can ...".
Also in that section, you should make Internal Page Cache module into a link (you'll need to check whether the module is installed using a moduleExists() call, see other hook_help for examples of this).
Comment #23
parth_gohil commentedI am working on the documentation change.
Comment #24
darol100 commentedI'm assigned this to myself to work on it.
Comment #25
darol100 commented@jhodgdon.
I think system help page should have links to the areas that what they are talking about it. So I wrote patch that contains links to the. In addition, this patch contain #22 suggestions.
Comment #27
darol100 commentedI would reroll it.
Comment #28
darol100 commented@jhodgdon.
I think system help page should have links to the areas that what they are talking about it. So I wrote patch that contains links to the. In addition, this patch contain #22 suggestions.
Please ignore the #25 patch. I upload the wrong patch. Here the correct patch.
Comment #29
darol100 commentedComment #30
darol100 commentedComment #31
darol100 commentedComment #32
fmb commenteddarol100: the current issue is mainly about the Internal Page Cache module. I think it would be better to discuss this matter in a new one.
Comment #33
darol100 commented@FMB,
So should we remove the links from the System hook_help ? And open it on a different issue ? I guess we probably would have to re-roll this patch ?
Comment #34
jhodgdonHm. Some changes to the System module help may be fine, such as if you wanted to make a link to the internal page cache module.
But most or all of the changes in this patch are definitely (a) out of scope for this issue and (b) not in line with the standards we have for Help pages. We do not want the headers in the Uses section to be links.
Please reverse these changes, and if there is a change to make to the System module help that is in scope of this issue (documenting the internal page cache), you can make it in this patch.
Comment #35
fmb commentedComment #36
ifrikThanks,
the help text for the Internal Page Cache looks good, and both links link to the correct pages.
The Performance page is provided by the system module which is required by Drupal core, so it can't be disabled. Therefore this help text don't need to check for it.
There's only one small thing left:
the link in the second use the link is using
@instead of!Comment #37
fmb commentedComment #38
jhodgdonThis looks great, thanks!
My only suggestion is here: I think that this heading should probably be "Configuring for performance" or something like that -- the verb should be "Configuring" not "Handling", since that's our standard way to say "setting up the site" or "managing settings" in docs and UI text (see https://www.drupal.org/node/604342 ).
Comment #39
darol100 commentedHere is a typo, it should said performance instead of "perfomance".
Comment #40
darol100 commentedHere is an updated version of the patch with #38 and #39 corrections.
Comment #41
darol100 commentedWrong Interdiff... sorry
Comment #42
jhodgdonGood catch, and thanks for reviewing and the new patch darol100!
So... you prompted me to think "Oh no, I missed some typos!" -- I figured I'd better give this a really really careful read-over, and (sorry!) I found three very small things to fix and then I think we're done:
a) In the new line in system.module, the link to "Performance page" is changed to lower-case "performance page". It should be capitalized, since the page is capitalized. That's here:
b) punctuation, just after that:
Should be:
small- to medium-sized websites
The reason is that it's "small-sized to medium-sized", presumably...
c) "re-used" should be "reused". No hyphen. That's also in system.module in that same line. Oh, it's also in page_cache.module.
Comment #43
darol100 commentedHere is an updated version of the patch with #42 corrections.
Comment #44
darol100 commentedComment #45
jhodgdonGreat, thanks! There's still one "re-used" in page_cache.module though:
Pages requested by anonymous users are stored the first time they are requested and then are re-used.
Fix that and I think we're done.
Comment #46
darol100 commented@jhodgdon, sorry about that. Here is the patch with the page_cache changes.
Comment #47
jhodgdonThanks! Looks good now.
Added beta eval to issue summary (this is just help docs).
Comment #48
alexpottCommitted 5c30cf2 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.