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.
(Found in #2381277: Make Views use render caching and remove Views' own "output caching")
Problem/Motivation
The Views table style plugin does not specify cache contexts for click sorting, which prevents it from working correctly with render caching.
Proposed resolution
Add the related cache context.
Remaining tasks
- Write a patch
- Review it
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#8 | views-cache_click_sorting-2433591-8.patch | 3.17 KB | plach |
Comments
Comment #1
dawehner.
Comment #2
plachThis should fix the issue. Let's see whether there is any test needing adjustments...
Comment #3
dawehnerI think we should array_unique the contexts?
Comment #4
dawehnerGiven that there might be multiple ones.
Maybe it could be also pretty helpful to add a test to admin/content, given that this is also some form of view.
Comment #5
dawehnerNevermind, I haven't seen the break.
Comment #8
plachStill too many branches ;)
Comment #9
dawehnerHa, yeah that fix makes totally sense.
Comment #10
catchCommitted/pushed to 8.0.x, thanks!