Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2010 at 09:58 UTC
Updated:
18 Apr 2012 at 14:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damien tournoud commentedHere is a patch:
Before:
After:
Comment #2
damien tournoud commentedComment #3
eric_a commentedthe page cache setting is a radio button, whereas the block cache setting is a checkbox
I think of the page cache setting as a list of available cache backend page cache implementations, so I think this should be be radios. To be honest, though, I don't know of any project that currently alters this form element.
Comment #4
sunCan we change this into:
"The amount of time that needs to elapse before caches are recreated."
i.e.
s/minimum//
s/will/needs/
s/the//
+ if you can think of a phrasing to kill the "amount of", that would even more cool.
Same here,
"The amount of time a page can be served from cache."
still, "amount of time" reads strange + too lengthy
143 critical left. Go review some!
Comment #5
sunThe time that must elapse before caches are recreated.
Caches are not re-created within the chosen time-frame.
Caches are re-created after the selected interval only.
Created caches are kept for this minimum retention time.
...
Note: The wording should make clear that caches will be kept + used + not rebuilt during the minimum lifetime.
Comment #6
sun...to make it even more complex, the minimum cache lifetime setting will prevent the entries in cache_page from being cleared, *but* the expiration headers that Drupal will sent out are controlled by the maximum page cache setting...
So the label for maximum should actually be like: "Expiration of cached pages"
+ we could perhaps drop the description
Comment #7
pwolanin commentedI'll try to re-roll with new text tomorrow.
Comment #8
pwolanin commentedok, guess that was more than a day.
Comment #9
pwolanin commentedWe have defined constants like CACHE_NORMAL that we are using. The code just happens to work since CACHE_NORMAL == 1.
So, if we want to use a simple checkbox (on/off) we should just stop using those constants.
Comment #11
pwolanin commentedoops - didn't fix all the constants.
Comment #12
pwolanin commentedimproved description text via discussion w/ Damien.
Comment #13
damien tournoud commentedHere is the result. That looks good to me.
Comment #14
dries commentedLooks good. Committed to CVS HEAD. Thanks.
Comment #15
sunWhat's that, btw?
Powered by Dreditor.
Comment #16
damien tournoud commentedThat's for cache_get()/cache_set().
Comment #17
c960657 commentedI just filed a new related issue: #804864: External page caching does only work when "page_cache_invoke_hooks" is set to FALSE. (Old "Aggressive Mode" is on)
Sorry for arriving late in this ticket, but I have some comments:
Why is this variable an integer and not a boolean? It seems that it is only 0 or 1 (except in statistics.test where it actually is TRUE).
cache_lifetime is not specific to the page cache, is it?
I don't think the wording makes it very clear that this has to do with HTTP caching. I suggest e.g.
#title => 'HTTP caching', and#description => 'The maximum time a proxy server or browser may cache a page. This only applies to anonymous users.'.Comment #18
pwolanin commented@c960657 - checkboxes or radios return values generally of 0 or 1, not TRUE/FALSE, so setting to 1 is consistent with how it will be set via the UI.
Comment #19
andypost0|1 TRUE|FALSE values for redios and checkboxes fixed in #654796: Identify fix bugs with checkbox element
Comment #20
traviscarden commentedIt looks like this issue can be closed.