Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
block.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Jul 2015 at 18:09 UTC
Updated:
15 Sep 2015 at 13:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fabianx commentedComment #2
fabianx commented#2483183: Make breadcrumb block cacheable introduces such a cache context.
Comment #3
dawehnerWell, should we mark this issue now as duplicated?
Comment #4
fabianx commentedMaybe after that other issue is in as its currently at needs work?
Comment #5
fabianx commentedNope, as part of this core/modules/system/src/Plugin/Condition/RequestPath.php should be updated to use it.
@berdir:
Did you intend for url.path to include basePath() or not?
The breadcrumb issue uses getBasePath() . getPathInfo().
Comment #6
wim leers#2483183: Make breadcrumb block cacheable was RTBC, got kicked back, and is now RTBC again. Which means that in all likelihood, that issue will land before this one, which means we can use the
'url.path'cache context being introduced there.Comment #7
kim.pepperLooks pretty simple.
Comment #8
dawehnerIdeally it would allow us to remove some of the longer lists of cache contexts.
Comment #9
wim leersYou mean e.g.
PageCacheTagsIntegrationTest?We don't have any integration tests using the
RequestPathcondition, clearly. So… not sure what else to do here. This is straightforward enough.Comment #10
alexpottCommitted 8b4ceac and pushed to 8.0.x. Thanks!