Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When using Views' caching mechanism, the view title will not be changed correctly when viewing a saved view and getting a cache hit. The reason is that the code to set the title is currently located in the area handler's render()
method, which is skipped when Views' output caching is active and gets a cache hit.
Instead, we should have this code in a hook_views_post_render()
implementation, which will also run for Views output retrieved from cache.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2833385-3--views_title_with_caching.patch | 1.06 KB | drunken monkey |
Comments
Comment #2
drunken monkeyThis should do it.
Comment #3
drunken monkeyOops, left some unnecessary code while copy-pasting.
Comment #4
drunken monkeyCommitted.