Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
request processing system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2015 at 08:41 UTC
Updated:
11 Oct 2015 at 22:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersQuoting @effulgentsia in #2429617-425: Make D8 2x as fast: Dynamic Page Cache: context-dependent page caching (for *all* users!):
Comment #3
wim leersAuthenticatioSubscribermore specific. About maintenance mode: we want to run after maintenance mode because if we run before, then we'll end up returning Dynamic Page Cache's cached responses instead of maintenance mode's "hey, the site is in maintenance" page (\Drupal\Core\EventSubscriber\MaintenanceModeSubscriber::onKernelRequestMaintenance()sets a response).Comment #4
serg2 commented1) You could change that to:
Pages which are suitable for caching are cached the first time they are requested, then the cached version is served for all later requests. Dynamic content is handled automatically so that both cache correctness and hit ratio is maintained.3) The full quote is:
"Exploits" is probably the most suitable word for the function it provides but it does sound negative so a drop in replacement could be:
examines / utilizes / uses .
Comment #5
yched commentedYep,
s/suitable from caching/suitable for caching
confused me as well :-)
Comment #6
fabianx commentedRe #1.2:
I think page_cache should use a page_cache cache bin and DPC should continue to use its own page bin.
Reason:
The render caching properties of page_cache are different from e.g. blocks and entities.
However usually dynamic_page_cache also might have less invalidation ratio than the normal page_cache, hence keeping it in its own bin.
On the other hand having dynamic_page_cache and page_cache both in the same bin makes sense for debuggability.
+1 to #4, I personally like "utilize"
+1 to #5
Comment #7
wim leersAddressed everything except point 2.
Comment #8
borisson_Comment #9
alexpottSorry about the minor but the example code is showing people how not to do things....
It should use an @placeholder and the getDisplayName() method.
Comment #10
borisson_Fixed #9.
Comment #11
wim leersLet's
use StringTranslationTrait;, so that this can call$this->t()instead.Comment #12
borisson_That sound like a good idea @Wim Leers, did that.
Comment #13
wim leersYou forgot the actual patch :P
Comment #14
borisson_woops.
Comment #15
wim leersThanks!
Comment #16
alexpottCommitted 04d331c and pushed to 8.0.x. Thanks!