Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Cache context ID: 'site'.
The correct ID of this context is 'url.site'.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2979166-5.patch | 606 bytes | rajeevk |
Comments
Comment #2
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedAs per the working example
cache_context.url.site:
class: Drupal\Core\Cache\Context\SiteCacheContext
arguments: ['@request_stack']
tags:
I think it should be 'url.site'
Comment #3
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedComment #4
Chi CreditAttribution: Chi commented@lomasr, there is no patch to review
Comment #5
rajeevkAttaching patch as per @ lomasr comment
Comment #6
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commented#4 My Mistake. I should have marked it "need work".
Comment #7
Chi CreditAttribution: Chi commentedThanks.
Comment #8
Gábor HojtsyComment #11
Gábor HojtsyGood catch, thanks!